agentleFS
ZeeshanSultanZeeshanSultan/DocGov/skills/create/SKILL.md

create

Skill0 starsChanged 2 months agoMITView on GitHub

Create a new governed document of the right class in the right place, with its template, its required sections, and its relationships already wired into the documentation graph. Use whenever new documentation is needed — a PRD, TRD, ADR, threat model, runbook, domain spec, guide or README.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use compare, tasks and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • n24q02mSkill

    compare

    Structured comparison of 2+ alternatives with consistent criteria and decision matrix

    Also in 3 projects that use this

  • genomewalkerSkill

    tasks

    Browse and resume tasks, threads, and background jobs across sessions

    Also in 3 projects that use this

  • AnthropicSkill

    analyze

    Answer data questions -- from quick lookups to full analyses. Use when looking up a single metric, investigating what's driving a trend or drop, comparing segments over time, or preparing a formal data report for stakeholders.

    Also in 3 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check it does not already exist: Run docgov create <type> "<name>" --check --json.

    line 12
  2. Very specific:

    Load the authoritative context: Run docgov brief <domain-or-topic>.

    line 23
  3. Very specific:

    If it refuses because an existing document already owns the name, that is the answer: go and edit that document.

    line 37
  4. Very specific:

    Declare invariants: if this is a canonical document.

    line 50
  5. Very specific:

    Run docgov check --path <new-file> and fix what it reports.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create a governed document

Before writing anything

  1. Check it does not already exist. Run docgov create <type> "<name>" --check --json. It writes nothing and tells you who already owns the topic: create-new means go ahead, review-first names documents worth reading first, and update-existing names the document you should be editing instead. Read the named documents before you decide it is wrong — a second document on the same subject is how contradictions are born. For a wider look across every class, docgov find "<topic>" returns results in authority order.
  2. Pick the class. docgov types lists all 56. If the user said "write docs for X", decide which class X actually is rather than defaulting to a guide. Do not invent a class.
  3. Load the authoritative context. Run docgov brief <domain-or-topic>. Read it before writing. It carries the constitution, the canonical spec, the invariants in force and the machine contracts — the things your document must not contradict.

Create it

docgov create <type> "<name>" --domain <domain>

This puts the file in the canonical location, applies the template, declares the right authority and visibility, and wires depends_on / implements edges from documents it found to be related. It prints the required sections and the line limits.

If it refuses because an existing document already owns the name, that is the answer: go and edit that document. --force exists, but using it means the new document must say how it differs from the one it now sits beside.

Then write it

  • Fill every required section. They are a deterministic gate: a TRD with no failure analysis fails docgov check, and rightly so.
  • Stay inside the limit the command printed. If the content genuinely needs more, the document is probably two documents.
  • Reference, do not restate. Machine contracts (OpenAPI, schemas, migrations) are authoritative; link them. Copying a schema into prose creates a second source of truth that will be wrong within a month.
  • Declare invariants if this is a canonical document. Any line beginning INV-<DOMAIN>-001 becomes a first-class object that gets injected into every agent that later touches the matching code. This is the highest-value thing you can write.
  • Map the code this document describes, in frontmatter: documents: ["src/licensing/**"]. Without it the document is invisible to drift detection.
  • Write for the class's audience. A README is not an architecture document. A runbook is numbered steps with expected results, not an essay.

Finish

Run docgov check --path <new-file> and fix what it reports. Then docgov affected to see whether creating this document obliges you to update anything else.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.