agentleFS
corticalstackcorticalstack/flow/.claude/skills/init/SKILL.md

init

Skill1 starsChanged 6 months agoMITView on GitHub

Bootstrap a new project with the Flow workflow - creates AGENTS.md from the template, creates .claude/tracker.json from the example, and optionally sets up cross-vendor review profiles. Run once per project after installing the Flow plugin. Explicit-only; do not auto-fire.

89 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use migrate, survey 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.
  • genomewalkerSkill

    migrate

    Import soul data from SQLite or shared chitta files

    Also in 8 projects that use this

  • SNL-UCSBSkill

    survey

    Literature survey assistant with four modes: /survey intent (capture student goals, expertise, and success criteria), /survey triage (landscape mapping via NotebookLM), /survey deepen (structured reading with craft and visualization extraction), /survey synthesize (cross-paper analysis for related work, area exams, gap identification). Also: /survey expand (corpus growth proposals). Use when students mention reading papers, literature review, related work, area exam prep, paper corpus, or any systematic reading task.

    Also in 3 projects that use this

  • pvnarpSkill

    bug

    Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.

    Also in 3 projects that use this

  • AnthropicSkill

    uninstall

    Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.

    Also in 3 projects that use this

  • Eipi-TongSkill

    adopt

    Onboard an existing codebase into the starter kit. Use when the user says "adopt this project", "add the kit to my existing repo", or "set up the kit on existing code".

    Also in 3 projects that use this

  • mlz11Skill

    reset

    Completely reset ClaudeNotifier installation, removing all components and permissions

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 4 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

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

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

    Check if ${CLAUDE_PROJECT_DIR}/AGENTS.md exists.

    line 16
  2. Very specific:

    Read it. Tell the user: *"AGENTS.md already exists.

    line 24
  3. Very specific:

    Ask the user: *"Which issue tracker does this project use?

    line 32
  4. Very specific:

    Create the ${CLAUDE_PROJECT_DIR}/.claude/ directory if it does not exist, then write the file.

    line 35
  5. Very specific:

    Read it to determine the active backend - the label step below still applies if it is github.

    line 43
  6. Very specific:

    Only run this when the active backend is github.

    line 47
  7. Very specific:

    Ask the user: *"Create the 8 workflow-state labels in this repo now?

    line 49
  8. Very specific:

    If yes, run bash ${CLAUDE_PROJECT_DIR}/.claude/scripts/tracker.sh setup-labels.

    line 50
  9. Very specific:

    If no, tell the user they can create them later with bash .claude/scripts/tracker.sh setup-labels.

    line 51
  10. Distinctive:

    Ask: *"Want to set up cross-vendor review now?

    line 55
  11. Very specific:

    If not, read ${CLAUDE_PLUGIN_ROOT}/.claude/skills/cross-review/profiles.example.json and write a copy to …

    line 59
  12. Distinctive:

    Commit anything (no git add / git commit).

    line 71
  13. Very specific:

    Run authentication flows (gh auth login, az login, copilot auth login) - the user does those.

    line 72
  14. Distinctive:

    If the project is not a git repo, the workflow skills assume git is in use.

    line 78
  15. Distinctive:

    If a write fails (permissions, etc.), print the exact error and stop.

    line 79

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

Flow init

You are bootstrapping the current user project (the directory at ${CLAUDE_PROJECT_DIR}) with Flow's workflow conventions and config templates. Read templates from the plugin install at ${CLAUDE_PLUGIN_ROOT}. Treat this as an interactive setup wizard: ask before each write, never overwrite an existing file.

Steps

1. AGENTS.md

Check if ${CLAUDE_PROJECT_DIR}/AGENTS.md exists.

  • If it does NOT exist:
    • Read ${CLAUDE_PLUGIN_ROOT}/docs/AGENTS.md.template.
    • Ask the user: "I'll create AGENTS.md at your project root from Flow's template. It has a [Replace this section ...] placeholder for the project overview - I can fill it in if you give me a one-paragraph description of this project, or leave the placeholder for you to edit later. What would you like?"
    • Resolve the placeholder if the user gives a description, then write the content to ${CLAUDE_PROJECT_DIR}/AGENTS.md.
  • If it DOES exist:
    • Read it. Tell the user: "AGENTS.md already exists. Flow expects (1) the feature-branch requirement, (2) the research / plan / implement / validate stages with flow/ artifacts, (3) the workflow-state vocabulary, (4) a pointer to the tracker adapter. The template is at ${CLAUDE_PLUGIN_ROOT}/docs/AGENTS.md.template - compare and merge anything missing."
    • Do NOT overwrite.

2. Tracker config

Check if ${CLAUDE_PROJECT_DIR}/.claude/tracker.json exists.

  • If it does NOT exist:
    • Ask the user: "Which issue tracker does this project use? github, azure-devops, or none? I'll create .claude/tracker.json from the Flow example with your choice as the active backend."
    • Read ${CLAUDE_PLUGIN_ROOT}/.claude/tracker.example.json.
    • Build the project's .claude/tracker.json with "tracker": "<user-choice>" and the corresponding backend block populated as much as you can from the example (keep the other backend blocks as inert reference - the adapter only reads the active one).
    • Create the ${CLAUDE_PROJECT_DIR}/.claude/ directory if it does not exist, then write the file.
    • Then per backend:
      • github: tell the user to confirm gh auth login is done, then offer the label step below.
      • azure-devops: warn that the backend is currently a stub (PR 2 pending) - tag / state-transition writes will not yet happen.
      • none: tell the user nothing more is needed; mutating tracker calls become no-ops, queries return empty JSON.
  • If it DOES exist:
    • Tell the user: ".claude/tracker.json already exists; leaving it alone. If you want to change backend, edit it directly - see ${CLAUDE_PLUGIN_ROOT}/.claude/tracker.example.json for the schema."
    • Read it to determine the active backend - the label step below still applies if it is github.

2a. Workflow-state labels (github backend only)

Only run this when the active backend is github. Skip it entirely for azure-devops (state tags are free-form, created on first transition) and none.

  • Ask the user: "Create the 8 workflow-state labels in this repo now? This writes to the GitHub repo, so gh auth login must already be done. (yes / no)"
  • If yes, run bash ${CLAUDE_PROJECT_DIR}/.claude/scripts/tracker.sh setup-labels. The command is idempotent (gh label create --force), so re-running is safe. If it fails (e.g. gh not authenticated), print the exact error and tell the user to run gh auth login and re-run the command - do not run the auth flow yourself.
  • If no, tell the user they can create them later with bash .claude/scripts/tracker.sh setup-labels.

3. Cross-vendor review (optional)

Ask: "Want to set up cross-vendor review now? It's optional - you can do it later. (yes / no)"

  • If yes:
    • Check if ${CLAUDE_PROJECT_DIR}/.claude/skills/cross-review/profiles.json exists.
    • If not, read ${CLAUDE_PLUGIN_ROOT}/.claude/skills/cross-review/profiles.example.json and write a copy to ${CLAUDE_PROJECT_DIR}/.claude/skills/cross-review/profiles.json (creating the directory if needed).
    • Tell the user to edit the file with their Foundry endpoint + deployment, GitHub Models model id, or Copilot CLI model, then run az login, gh auth login, or copilot auth login as needed.

4. Summary

Print a short summary of what was created and any pending user actions. End with:

Try /flow:research-requirements <issue-url-or-description> to kick off the workflow.

Out of scope

This skill does not:

  • Commit anything (no git add / git commit).
  • Run authentication flows (gh auth login, az login, copilot auth login) - the user does those.
  • Install prerequisites (jq, curl, gh, az, copilot) - the user installs them.
  • Overwrite existing AGENTS.md or tracker.json files.

Errors

  • If the project is not a git repo, the workflow skills assume git is in use. Suggest git init if applicable, but do not run it automatically.
  • If a write fails (permissions, etc.), print the exact error and stop.

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.