agentleFS
JQ-WCodingJQ-WCoding/devkit/skills/setup/SKILL.md

setup

Skill1 starsChanged 11 days agoMITView on GitHub

Build or extend the team's shared rules skeleton (docs/rules), local CLAUDE.md and .gitignore from a repo fingerprint and a short interview. Use for "set up devkit", "make a dev rules skeleton", "add CLAUDE.md".

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-nanoclaw, get-qodo-rules and 10 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.
  • MicrosoftSkill

    update-nanoclaw

    Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.

    Also in 9 projects that use this

  • MicrosoftSkill

    get-qodo-rules

    Loads org- and repo-level coding rules from Qodo before code tasks begin, ensuring all generation and modification follows team standards. Use before any code generation or modification task when rules are not already loaded. Invoke when user asks to write, edit, refactor, or review code, or when starting implementation planning.

    Also in 8 projects that use this

  • TomGranotSkill

    add-anydoc

    Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.

    Also in 5 projects that use this

  • TomGranotSkill

    add-clidash

    Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.

    Also in 5 projects that use this

  • +5 more from TomGranot
  • +3 more from microsoft

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 169 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Follow method.md: shared source of truth docs/rules/ + local router CLAUDE.md, short table-first style, policies that go into every project.

    line 9
  2. Distinctive:

    Run the scripts (no need to read them).

    line 18
  3. Distinctive:

    Check the repo root (argument or current directory), current branch and working-tree state.

    line 22
  4. Very specific:

    If CLAUDE.md or docs/rules/ already exists, this is extend mode.

    line 23
  5. Very specific:

    If README.md, CONTRIBUTING.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md or install docs exist, read them as evidence …

    line 24
  6. Distinctive:

    If "Possible plaintext secrets" appears, report the locations only.

    line 34
  7. Very specific:

    Ask with AskUserQuestion only the interview.md items the fingerprint did not settle.

    line 38
  8. Very specific:

    Use templates.md as the skeleton.

    line 56
  9. Distinctive:

    Only add to existing files with Edit, preserving line endings (CRLF/LF).

    line 58
  10. Very specific:

    Do not commit. If asked, use devkit:commit.

    line 59
  11. Very specific:

    If .devkit/runtime.json was written, run python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/run-app/scripts/runtime.py" --repo <repo root> status.

    line 70
  12. Very specific:

    Check by hand: does CLAUDE.md only link to rules instead of copying them, are there no general-knowledge rows, can every row's evidence be …

    line 72

“Common” is measured: kept by at least 6 in 10 of the 169 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

devkit base setup

Follow method.md: shared source of truth docs/rules/ + local router CLAUDE.md, short table-first style, policies that go into every project. Fill rule-table rows only from the fingerprint and user answers; write nothing without evidence.

ReferenceWhen
method.mdAt the start
interview.md🛑A
templates.mdStep 2
templates-onboarding.mdStep 2, only when the onboarding guide was approved at 🛑B

Run the scripts (no need to read them). Put their output in the scratchpad.

0. Check the target

  • Check the repo root (argument or current directory), current branch and working-tree state. If it is not a git repo, ask whether to proceed without history.
  • If CLAUDE.md or docs/rules/ already exists, this is extend mode. Treat the existing docs as the source of truth and add only missing files and sections. Never overwrite.
  • If README.md, CONTRIBUTING.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md or install docs exist, read them as evidence (README often has run commands, ports and access paths). Do not delete or move them.

1. Collect the fingerprint

python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/scan_repo.py" <repo root> --out <scratchpad>/fingerprint.json > <scratchpad>/fingerprint.md

From fingerprint.md use only what this step needs: Layout (sub-projects), Runtime environment (versions, profiles, ports, proxies), CI, DB type, Existing rules and AI config, .gitignore and Tracked docs/ files count, Code style, Git (remote host, branches, Merge targets, commit convention, trailers). For environment facts not in the fingerprint, read config files, CI and scripts directly and record each file read in the "Evidence files" table of decisions.md.

If "Possible plaintext secrets" appears, report the locations only. Never print the values or copy them into docs.

🛑 A. Interview

Ask with AskUserQuestion only the interview.md items the fingerprint did not settle. For environment values, show what the fingerprint found and ask only whether it is right. Record answers in <scratchpad>/decisions.md.

🛑 B. Setup plan approval

Show everything at once and get approval. Create no files in the repo before approval.

  • Files to create, one line each, including the empty docs/rules/glossary.md. State that layer docs hold fact rows only (applies-to path, language, runtime, aliases, reference files) and that rule rows are added later by devkit:suggest-skills
  • Whether to create an onboarding guide (docs/guide/) and its step list
  • Lines to add to .gitignore (or "no change" and why if all are present) and the fingerprint's Tracked docs/ files count. Run git check-ignore -v <path> for every planned path — if a file meant to be shared is ignored, add it to the allow list or rename it to match an existing allowed name
  • Whether repo-wide file checkers (nohttp, license headers, markdownlint, spell check, etc. — find them in CI and build config) also apply to the new docs, and if so, that the docs will follow those rules
  • Settings file: the ".claude/settings.json" section of templates.md — attribution or DEVKIT_AI_TRAILER depending on the AI attribution answer. If the team-devkit answer is yes, .claude/settings.json (no install keys; each teammate installs devkit); if no, .claude/settings.local.json
  • If the server-start answer is yes, the target is a git repo (the harness needs one) and .devkit/runtime.json does not exist: its services (cwd, cmd, port, health, depends) and preflight ports, each with its evidence file, in the format of config.md. Leave out a service whose command or port has no evidence and say so. Credentials go only in an env_file path, never in the config
  • In extend mode, what will be added to each existing file

2. Write

Order: docs/rules/ (README → common → git → environments → glossary (empty skeleton; never overwrite an existing one) → layer docs) → docs/guide/ (if created) → CLAUDE.md → .gitignore → .claude/settings.json or .claude/settings.local.json → .devkit/runtime.json (if approved).

  • Use templates.md as the skeleton. Fill {{…}} slots from the fingerprint and answers; delete the whole row when there is no evidence.
  • Write environment values with their source (link to the config file) and add "as of" and "checked scope". Values the user confirmed get "user confirmed"; otherwise "from config files · not verified by running or connecting". Values with no evidence at all are unverified. For credentials, write only how they are delivered.
  • Only add to existing files with Edit, preserving line endings (CRLF/LF).
  • Do not commit. If asked, use devkit:commit.

3. Check

python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/check_docs.py" <repo root>

It checks CLAUDE.md, docs/rules, docs/guide, .claude/agents and .claude/skills. ERROR: broken links, secret-shaped values, unfilled {{…}}, agent frontmatter. WARN: inline-code identifiers with no evidence in the repo, broken links from the root README into docs/rules or docs/guide, length.

  • Fix every ERROR and run again.
  • If .devkit/runtime.json was written, run python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/run-app/scripts/runtime.py" --repo <repo root> status. It reads the config and starts nothing; fix what it rejects.
  • For a no-evidence identifier WARN, check whether it was copied from another project or is a typo, and fix it. If it is an intended external name (a tool or standard in use), rerun with --allow <identifier> and report why.
  • Check by hand: does CLAUDE.md only link to rules instead of copying them, are there no general-knowledge rows, can every row's evidence be found in fingerprint.md or decisions.md?

4. Report

Report files created or changed, interview decisions, check results and remaining WARNs, .gitignore changes, unverified environment values, and .devkit/runtime.json as not verified by running until the first devkit:run-app up. Then suggest devkit:suggest-skills in one line as the next step (pinpoint rules, skills and agents for this repo).

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.