AGENT SKILL

knowledge-modeling

Use when building or refining a project's domain model, glossary, or bounded contexts, when validating tool outputs/data against a domain ontology before side effects, or when extracting entities, relations, evidence, and provenance from Markdown/plain text into a typed versioned knowledge graph under `.devin/`.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
1

01 前言 Front Matter

name
knowledge-modeling
agent
architect
triggers
[ "user", "model" ]
description
Use when building or refining a project's domain model, glossary, or bounded contexts, when validating tool outputs/data against a domain ontology before side effects, or when extracting entities, relations, evidence, and provenance from Markdown/plain text into a typed versioned knowledge graph under `.devin/`.

02 资源文件 4

03 SKILL.md 正文

Knowledge Modeling

Domain model, ontology validation, and knowledge-graph extraction — the typed-vocabulary family.

Domain modeling (active discipline)

Build and sharpen the domain model as you design — challenge terms, invent edge-case scenarios, write glossary + decisions the moment they crystallise. (Merely reading .devin/CONTEXT.md is a habit, not this skill — this is for changing the model.)

Structure: .devin/CONTEXT.md (glossary + bounded contexts) + .devin/adr/ (decisions). Formats: reference/CONTEXT-FORMAT.md, reference/ADR-FORMAT.md.

Cross-skills: research for authoritative term definitions; deep-mode for how code currently uses terms; ai-coding-dictionary for AI-coding jargon alignment.

Ontology validation (before side effects)

Pydantic at the door, ontology at the ledger.

Schema/type checks (Pydantic or equivalent) validate shape; ontology validates domain-level reasonableness. Check, before any write/insert/API call driven by tool output:

  1. Entity type valid for this domain.
  2. Status value allowed (pending/in_progress/completed…).
  3. Relationship type makes sense (contains, depends_on…).
  4. No duplicates — entity or relation already exists?
  5. Disjointness — disjoint entities treated as same?
# Schema validates shape
class Ticket(BaseModel):
    status: Literal["pending", "in_progress", "completed"]

# Ontology validates domain
if ticket.status == "completed" and ticket.depends_on_open():
    raise ValueError("Cannot complete ticket with open dependencies")

Helper: python3 scripts/validate.py (this skill's scripts/). Anti-pattern: trusting tool output because the schema allows it.

Knowledge extraction (text → typed graph)

Deterministic, provider-neutral extraction of entities, relations, evidence, and provenance from Markdown/plain text into versioned JSON + relational Markdown under .devin/. No API key, no LLM — lexical baseline (not vector search).

  • Every extracted fact points back to source file:line + quote.
  • Incremental: merge new sources without duplicating entities or silently overwriting conflicts (conflicts reported, explicit action required).
  • Baseline for evaluating Hyper-Extract/embeddings/MCP later.

Helper: python3 scripts/extract.py.

04 同仓库更多 Skills

Leostruka
Leostruka/devin-bundle

montador-de-ideias

Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.

★ 0
Leostruka
Leostruka/devin-bundle

git-github-adaptive-engineering

Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.

★ 0
Leostruka
Leostruka/devin-bundle

adaptive-agenda-calendar-routine-engine

Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.

★ 0
Leostruka
Leostruka/devin-bundle

demo

Use when demonstrating a skill in a fixture project.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0