agentleFS
tusharsrivastavatusharsrivastava/shark-skills/skills/init/SKILL.md

init

Skill32 starsChanged 15 days agoMITView on GitHub

Sets up a repository, or a multi-repo workspace, for shark one time. Adds the missing template sections to CLAUDE.md or AGENTS.md with values from the repository, the Working rules block, one session start rule, and the shark:asd-ste100 output style. Checks and sets up the tools behind the hooks, the guards and the debugger for the languages of the project (debug adapters, code-health analyzers, rules and baseline). In a folder that is not a repository, it can set up a workspace that manages several repositories (inside it or next to it), and asks for their paths or URLs. Keeps existing text. Use when the user says init, set up shark or check the shark tools, or after a kit update.

  • Reads credentials

156 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval 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.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 4 projects that use this

  • gaebalaiSkill

    design-tracker

    PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.

    Also in 4 projects that use this

  • +5 more from Lambenthan
  • +1 more from skyllwt

The file

Show its rules and text

We split this skill into the rules it gives an agent

33 rules. 0 are common, 15 are distinctive, and 18 are very specific to this project.

  • 0

    Common

    Most of the 143 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 18

    Very specific

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

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

    Never read a secret file: Do not open .env, .env.*, secrets/, *.pem, *.key, or files that the project's ## Secrets section names.

    line 34
  2. Distinctive:

    Exactly one start rule: After the run, the project file has one instruction about what runs first in a session.

    line 48
  3. Distinctive:

    Run the scan in the folder where the session runs:

    line 57
  4. Distinctive:

    If the target has changes that are not committed, tell the user before you change it.

    line 84
  5. Distinctive:

    Read only the build and configuration files.

    line 96
  6. Very specific:

    Do not copy the guidance lines (>) or the "Examples by stack" tables of the template into the project file.

    line 114
  7. Very specific:

    If you find none, the ## Session harness section gets the template default: "Invoke /shark:operator first, before the first answer."

    line 128
  8. Distinctive:

    If you find one, ask the user which one leads.

    line 131
  9. Very specific:

    When an existing ## Session harness section names a harness, keep it.

    line 140
  10. Distinctive:

    When shark leads, check the description of the orchestrator's own skill or agent file.

    line 142
  11. Very specific:

    If git ignores .claude/settings.json (git check-ignore -q .claude/settings.json exits with 0), the setting stays on this machine only.

    line 167
  12. Distinctive:

    Run the check script:

    line 172
  13. Distinctive:

    Do not write the block in this step.

    line 210
  14. Very specific:

    If the target already has a ## Working rules section with no markers, do not add a second one.

    line 222
  15. Distinctive:

    After the user says yes, write the files in this order:

    line 231
  16. Distinctive:

    Write the project sections to the target (the Write tool for a new file, the Edit tool for an existing one).

    line 232
  17. Very specific:

    If apply exits with 2, the shell cannot write the file (for example in a sandbox).

    line 237
  18. Very specific:

    Add the starter rules with the command that step 6 named (health.mjs rules add: it copies the rules for the languages of the project to …

    line 242
  19. Very specific:

    Run the install commands that the user approved, one at a time, exactly as doctor.mjs printed them.

    line 245
  20. Very specific:

    Run one action in each Bash command.

    line 247
  21. Very specific:

    Run working-rules.sh check <target> again.

    line 250
  22. Distinctive:

    Check that each of the eight section headings occurs one time in the target.

    line 252
  23. Very specific:

    Check that the target has one start rule only: the ## Session harness section, and no other "first" instruction that names a different …

    line 253
  24. Very specific:

    Check that .claude/settings.json is valid JSON and that its outputStyle is the value that the user agreed: node -e …

    line 256
  25. Very specific:

    Run doctor.mjs again, without --no-smoke.

    line 258
  26. Very specific:

    When the analyze rows and the analyzers are ok, record the baseline:

    line 260
  27. Distinctive:

    start a new session, so that Claude Code reads the new project file and the output style.

    line 285
  28. Very specific:

    check the two lists in ## Secrets: the deny-secrets hook of the kit reads them and refuses tool calls on those files.

    line 286
  29. Very specific:

    run /shark:doctor again after a new language or a new machine.

    line 288
  30. Distinctive:

    Do not commit the files.

    line 290
  31. Distinctive:

    Ask in one message, together with the questions of W2.

    line 307
  32. Very specific:

    Ask one time: "Set up the project file of each repository now?" For each repository that the user picks, do steps 1 to 9 with the …

    line 393
  33. Distinctive:

    Do not commit the files: not in the workspace, and not in a repository.

    line 404

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

Init

This skill makes the project file of a repository follow the shark template, and makes the tools work that the shark hooks, guards and debugger need in this project. Run it one time for each project. Run it again after a kit update: a second run on an unchanged template changes nothing.

The plugin loads its hooks (deny-secrets, wide-commits, health-review) and its MCP server (mcp-debugger) by itself. They work only when the project gives them what they read: the ## Secrets lists, the analyze:* rows, the rules in .shark/rules/, a debug adapter for each language. The check script doctor.mjs (step 6) finds what is missing and gives the pinned fix for each item.

It also sets up a multi-repo workspace: a folder, with its own git repository and no remote, that holds the shared project file of several repositories. The repositories are inside the workspace or next to it (for example ../api). Step 0 decides which procedure applies.

The template is ${CLAUDE_PLUGIN_ROOT}/AGENTS.md. Read it first. It has three parts:

PartLinesWhat init does with it
"How to use this file"From the top to the first ---Nothing. It is for people who copy the file by hand.
Project sections## Commands to ## Session harnessAdds each missing section, with values from the repository.
## Working rulesTo the end of the fileAdds it between markers, word for word, with the script.

Rules

  1. Never remove or rewrite text that is already in the project file. Only add sections, rows and the marked block. If an existing section has a name that is near a template name (for example ## Build commands), ask the user if it is the same section. Do not rename it without a yes.
  2. Never read a secret file. Do not open .env, .env.*, secrets/, *.pem, *.key, or files that the project's ## Secrets section names. Find the setting names from .env.example or from the code, never from the secret file.
  3. Ask one time. Collect every value that you cannot find, and ask for all of them in one message. Give a suggested value for each. Do not ask again in the same run.
  4. Show the change before you write it. Show a short summary and the new sections. Write only after the user says yes.
  5. Do not commit. Tell the user which files changed. The commit is a decision of the user.
  6. Install only after a yes, and only the commands that doctor.mjs prints. They are pinned and hash checked, and install-tools.sh puts Opengrep, Lizard and debugpy in the shark tool folder (the plugin data folder), the same on each machine. Never install Opengrep from PyPI (a malicious package uses the name), never use sudo, never use --break-system-packages, and never install a shark tool into the system Python or the project environment. A machine fix (for example the python3-venv package) is for the user to do. When the user says "do not install", list the commands and install nothing.
  7. Exactly one start rule. After the run, the project file has one instruction about what runs first in a session. Never add a second one next to an orchestrator that the project already uses.
  8. Never invent a repository. In a workspace, use only the repositories that the scan finds and the user picks, and the paths and URLs that the user gives. Run git init and git clone only after a yes.

Procedure

0. Repository or workspace

Run the scan in the folder where the session runs:

node "${CLAUDE_PLUGIN_ROOT:-<directory of this skill>/../..}/skills/init/scripts/workspace.mjs" scan
kindMeaningAction
repositoryThe root of a git repositorySteps 1 to 9 on this repository.
inside-repositoryA subfolder of a git repositorySteps 1 to 9 on the repository root. Tell the user.
projectNo git, but the build file of one project (markers)Steps 1 to 9 on this folder.
workspaceEmpty, or it holds git repositories (repos), or its project file has ## RepositoriesAsk: "Set up this folder as a multi-repo workspace?" On a yes, do Workspace mode. On a no, steps 1 to 9.
folderNone of theseAsk the user if it is one project or a workspace.

1. Choose the project file

Claude Code reads CLAUDE.md. It reads AGENTS.md only when there is no CLAUDE.md, or when the claude-md-and-agents-md setting is on.

The repository root hasTarget
CLAUDE.md onlyCLAUDE.md
AGENTS.md onlyAGENTS.md
Both, and CLAUDE.md imports AGENTS.md (a line @AGENTS.md)AGENTS.md
Both, with no importAsk the user. Recommend CLAUDE.md, because Claude Code always reads it.
NeitherMake AGENTS.md, with the title # AGENTS.md: <project name>

If the target has changes that are not committed, tell the user before you change it.

2. Find the sections that are missing

Find each project section by its exact heading: ## Commands, ## Invariants, ## Architecture rules, ## Test scope, ## Secrets, ## Docs layout, ## Owner rules, ## Session harness. A section that exists stays as it is.

In an existing ## Commands table, find the keys that are missing. Add only those rows.

3. Find the values in the repository

Read only the build and configuration files. Each value that you find is a suggestion. The user confirms it.

ValueWhere to look (examples for more than one stack)
Commandspackage.json scripts, Makefile, justfile, Taskfile.yml, pyproject.toml, tox.ini, noxfile.py, go.mod with go test, Cargo.toml, the CI workflow files
gate:fastThe fast checks of CI: lint, type check, unit tests. Not the integration tests.
gate:fullAll the CI jobs, with the integration tests
Architecture rulesAn import-linter, dependency-cruiser, ESLint no-restricted-imports or depguard configuration; the top-level source folders
Secrets.env.example, .gitignore rules for env files, the loader (docker compose env_file, direnv, a settings module). Write "Enforced by: the shark hook deny-secrets", unless the project has its own hook. The hook always allows example files (*.example, *.sample, *.template), so agents can read the setting names.
Docs layoutThe docs/ tree, a decisions log, a handoff file
InvariantsDo not guess. Suggest the template examples that fit the code (for example "Money" when the code has prices), and ask.
Owner rulesDo not guess. Suggest the template defaults ("Push only when the owner asks", the 10-minute rule for long checks).
analyze:file, analyze:fullTake the rows that doctor.mjs gives (step 6). Keep existing analyzer rows.
analyze:diffnone, unless the project has its own diff scanner.
arch:checkThe row that doctor.mjs gives when the project configures import-linter, dependency-cruiser or depguard. Else none.

For a key that the project does not use (for example test-db:copy or bench), write none.

Do not copy the guidance lines (>) or the "Examples by stack" tables of the template into the project file. Copy only the table structure and the project values.

4. Find an existing orchestrator

Some projects already run their own session harness: an orchestration loop, a conductor skill, or a workflow that starts each session. Look for:

SignWhere
A start rule: "run /x first", "at the start of every session", "always begin with"The target file, and CLAUDE.md, AGENTS.md and their imported files
A SessionStart hook.claude/settings.json, .claude/settings.local.json
A skill or agent whose job is to run the session (names such as orchestrat*, conductor, loop, operator, workflow).claude/skills/, .claude/agents/. Read its description.

If you find none, the ## Session harness section gets the template default: "Invoke /shark:operator first, before the first answer."

If you find one, ask the user which one leads. Put the question in the message of step 7. Name the orchestrator and quote the rule or file where you found it. Give these choices:

Choice## Session harness textThe existing start rule
Theirs leads, shark on call (recommended: it keeps the workflow that the team has)"This project's session harness is /x. Use /shark:operator only when the user asks, or when /x hands work to it. The shark agents and skills stay available. Working rules §1 (How a session runs) apply only while /shark:operator runs; the other Working rules apply to all work."Stays as it is.
shark leads"Invoke /shark:operator first, before the first answer. The operator may hand a task to /x when the task fits it."Must change, so that there is one start rule. Show the exact old line and the new line, and change it only after a yes.
Split by mode"Use /x for <the work the user names>. Use /shark:operator for <the rest>. Ask the user when a request fits both."Stays, if it does not say "always first". If it does, handle it as in "shark leads".

When an existing ## Session harness section names a harness, keep it. Do not ask again.

When shark leads, check the description of the orchestrator's own skill or agent file. If it says "use at the start of every session" or similar, tell the user to change that phrase (for example to "Use when the operator hands a task to it"). Do not change that file yourself: it is not the project file.

5. Set the output style

The kit ships the output style shark:asd-ste100. The skills and agents write their reports for it. Set it for the project in .claude/settings.json, the settings file that the team shares:

{
  "outputStyle": "shark:asd-ste100"
}
.claude/settings.jsonAction
Does not existMake it with only the outputStyle key.
Exists, with no outputStyle keyAdd the key. Keep every other key and its value.
Has "outputStyle": "shark:asd-ste100"Change nothing.
Has a different outputStyleAsk in the message of step 7. Quote the current value. Recommend shark:asd-ste100. Change it only after a yes.

Also read .claude/settings.local.json, if it exists. Its outputStyle overrides the shared file for one user. Do not change that file: it is personal. If it sets a different style, name it in the report.

If git ignores .claude/settings.json (git check-ignore -q .claude/settings.json exits with 0), the setting stays on this machine only. Name this in the report.

6. Check the tools

Run the check script:

node "${CLAUDE_PLUGIN_ROOT:-<directory of this skill>/../..}/skills/init/scripts/doctor.mjs" --no-smoke

It finds the languages of the repository and checks each part. It installs and writes nothing. /shark:doctor runs the same script at any time.

AreaItems
debuggerThe mcp-debugger server in the npm cache; .claude/mcp-debugger.log in .gitignore; the debug adapter of each language (Python: debugpy from the shark tool folder or the project environment; JS/TS: Node 18 or later; Go: Delve)
toolspython3 3.9 or later with venv, only when Lizard or debugpy must be installed
code-healthOpengrep (the fixed version or later) and Lizard; the starter rules for each language in .shark/rules/; the analyze:file and analyze:full rows; the baseline
guardsThe ## Secrets lists (deny-secrets), the ## Invariants rules (shark:invariant-guard), the arch:check row

Each row has a status (ok, warn, missing, fail) and, when it is not ok, the fix and its scope. Exit code 0: nothing missing. Exit code 1: one or more items are missing or failed. Put the fixes in the message of step 7, in three groups:

  1. Installs (each with its scope: the shark tool folder, the npm cache, the machine). The report of the script names the tool folder.
  2. Files that init adds: the starter rules in .shark/rules/, the .gitignore line.
  3. Rows that init adds to ## Commands.

A warn is not a blocker. Name it in the report (for example "no starter rules for Go: Lizard checks complexity only"). A language that the script does not check gets "not verified" in the report, never "ok".

The mcp-debugger tools can also be checked in the session: search the deferred tools for mcp-debugger. Do not start a debug session in init.

7. Ask for the rest

Send one message with every value that is still unknown, and the fixes of step 6. Use a table: section, item, suggested value, why. Recommend each fix. Use the answer for the rest of the run.

8. Plan the Working rules block

Do not write the block in this step. Check the target with the script, and choose the action:

"${CLAUDE_PLUGIN_ROOT:-<directory of this skill>/../..}/skills/init/scripts/working-rules.sh" check <target>
Exit codeMeaningAction
0The block is the same as the template.Change nothing.
3The target has no block.Add it in step 9 with working-rules.sh apply <target>.
1The block differs.Show working-rules.sh diff <target>. A project can make a rule stricter. Ask the user which lines to keep. Never replace the block without a yes.

If the target already has a ## Working rules section with no markers, do not add a second one. Show the difference against working-rules.sh print, and ask the user how to merge.

The first Working rule says that the session harness runs first. The ## Session harness section names it.

9. Write, set up the tools, and check

  1. Show the summary: the target file, the sections added, the rows added, the Working rules action, and the output style action.
  2. After the user says yes, write the files in this order:

    1. Write the project sections to the target (the Write tool for a new file, the Edit tool for an existing one).
    2. Then run working-rules.sh apply <target>. It adds the block at the end of the target, and it is the last write to the target. Do not write the block yourself, except as in step 3. Do not use the Write tool on the target after apply: a Write replaces the whole file and removes the block. If you must change a section after apply, use the Edit tool.
    3. If apply exits with 2, the shell cannot write the file (for example in a sandbox). Then run working-rules.sh print, and add its output, unchanged, at the end of the target with the Edit tool: replace the last line of the target with that line, a blank line, and the block. Do not retype or shorten the block.
    4. Change .claude/settings.json with the Edit tool (or the Write tool for a new file), not with a script, so that its other keys and its format stay the same.
    5. Add the starter rules with the command that step 6 named (health.mjs rules add: it copies the rules for the languages of the project to .shark/rules/ and keeps a rule file that exists). Add the .gitignore line with the Edit tool (or the Write tool when there is no .gitignore).
    6. Run the install commands that the user approved, one at a time, exactly as doctor.mjs printed them.

    Run one action in each Bash command; do not chain writes with &&. When a write or a command fails or is refused, stop only that item: keep its error for the report, and continue with the next item and with the checks below.

  3. Run working-rules.sh check <target> again. Expect exit code 0, or 1 when the user kept a stricter rule. If it gives 3, the block is missing: add it again as in step 2, and check again.
  4. Check that each of the eight section headings occurs one time in the target.
  5. Check that the target has one start rule only: the ## Session harness section, and no other "first" instruction that names a different skill (unless the user chose "Theirs leads", where the existing rule and the section name the same skill).
  6. Check that .claude/settings.json is valid JSON and that its outputStyle is the value that the user agreed: node -e 'console.log(JSON.parse(require("fs").readFileSync(".claude/settings.json","utf8")).outputStyle)'.
  7. Run doctor.mjs again, without --no-smoke. The smoke check runs analyze:file on one source file of each language. Each item that was fixed must now be ok.
  8. When the analyze rows and the analyzers are ok, record the baseline:

    node "${CLAUDE_PLUGIN_ROOT:-<directory of this skill>/../..}/skills/code-health/scripts/health.mjs" baseline record

    It writes .shark/health-baseline.json with the findings that exist now, so that the hook shows only new ones. Give its counts in the report. Do not record a baseline when an analyzer is missing or failed: a baseline with a missing analyzer hides nothing and misleads the next run.

10. Report

Report in ASD-STE100: outcome first. Name:

  • the target file, and each section and row that you added;
  • the session harness that leads, and the orchestrator that you found, if any;
  • the output style in .claude/settings.json, a different style in .claude/settings.local.json, and whether git ignores the shared settings file;
  • each value that is a suggestion and that the user did not confirm;
  • the final doctor.mjs result, as a table with one row for each item that the script printed, also each ok item (the user sees which tools, debug adapters and servers were checked): item, status (the word that the script printed: ok, warn, missing, fail, or "not verified" when the script did not check it), and the fix command. Give each install that ran with its version. Never call a tool ready when the last check did not show it as ok;
  • the baseline counts, and that .shark/health-baseline.json and .shark/rules/ are for the user to commit;
  • the next steps for the user:
    • start a new session, so that Claude Code reads the new project file and the output style;
    • check the two lists in ## Secrets: the deny-secrets hook of the kit reads them and refuses tool calls on those files;
    • run /shark:doctor again after a new language or a new machine.

Do not commit the files.

Workspace mode

A workspace holds the shared rules of several repositories. Its project file names the repositories. Each repository keeps its own project file for its own values (commands, gates, secrets, architecture rules); that file wins for work in that repository. Both secret lists apply: the deny-secrets hook reads the workspace file and the file of the repository that holds each path.

W1. Get the repositories

Scan resultAction
empty: trueDo not search. Ask the user for the repositories to manage: a folder path for each repository that exists (inside the workspace or next to it, for example ../api), or a git URL to clone into the workspace.
repos not emptyShow the found repositories (path, remote). Ask which ones to manage. The user can add more paths or URLs.
empty: false, no reposTell the user that you found no repository, and ask as for an empty workspace.

Ask in one message, together with the questions of W2. Then check every path that the user gave:

node "${CLAUDE_PLUGIN_ROOT:-<directory of this skill>/../..}/skills/init/scripts/workspace.mjs" check <path>...

A path with ok: false is not used. Tell the user its reason, and ask one time for a correct path.

For each URL: the folder name is the last part of the URL without .git, unless the user gives one. A folder with that name must not exist. After the yes of W3, clone it: git clone <url> <name> in the workspace, one clone in each Bash command. A failed clone stops only that repository: report it, and continue with the others.

W2. Values to ask for

In the same message as W1, ask for the values that you cannot find. Give a suggestion for each:

  • a short role for each repository (for example "backend API", "web app");
  • the rules that cross repositories, for ## Invariants (for example "the web app uses only the API contract in api/openapi.yaml"). Do not guess; suggest none when the user gives none;
  • the session harness (step 4 of the procedure, on the workspace folder);
  • the owner rules (the template defaults).

W3. Show the plan, then write after a yes

Show the summary: git init (when gitInit is false; no remote), the clones, the workspace project file, the .claude/settings.json change, the .gitignore lines. Write after the user says yes, in this order:

  1. git init in the workspace, when gitInit is false. Do not add a remote. When the scan gives outerRepository, the workspace is inside another repository: say so in the summary. The workspace becomes a repository of its own inside it. Do not change the outer repository; tell the user that it can ignore the workspace folder.
  2. The clones of W1.
  3. The project file of the workspace (step 1 chooses the target: AGENTS.md when the folder has none). Write these sections, with the values of W1 and W2. A section that exists stays as it is; add only the rows that are missing in ## Repositories.

    # AGENTS.md: <workspace name> workspace
    
    ## Repositories
    
    This folder is a multi-repo workspace. Each repository's own project file (AGENTS.md or CLAUDE.md) gives its
    commands, gates, secrets and architecture rules, and wins for work in that repository. Read it before you work
    in a repository. The Working rules and the secret lists of both files always apply. Each repository has its own
    git history: commit, branch and open pull requests in the repository, never in the workspace.
    
    | Name | Path | Remote | Role |
    | --- | --- | --- | --- |
    | <name> | `<path from the check>` | <remote, or none> | <role> |
    
    ## Invariants
    ## Secrets
    ## Docs layout
    ## Owner rules
    ## Session harness

    Fill ## Invariants, ## Secrets, ## Docs layout, ## Owner rules and ## Session harness as in steps 3 and 4 (## Secrets: the template default list; ## Docs layout: the handoff file and the decisions log in the workspace). Do not add ## Commands, ## Architecture rules or ## Test scope: they belong to each repository.

  4. working-rules.sh apply <target>, as in step 8.
  5. .claude/settings.json of the workspace, with the Edit tool (the Write tool for a new file), keeping every other key: the outputStyle of step 5, and each repository outside the workspace (inside: false) in permissions.additionalDirectories, with the path from the check. Without it, a session in the workspace cannot read or edit that repository.

    {
      "outputStyle": "shark:asd-ste100",
      "permissions": { "additionalDirectories": ["../api", "../web"] }
    }
  6. .gitignore of the workspace, with the Edit tool (the Write tool for a new file): one line /<path>/ for each repository inside the workspace, so that the workspace repository does not track it.

W4. Check

  1. working-rules.sh check <target> gives 0.
  2. The target has ## Repositories one time, with one row for each repository, and one start rule.
  3. workspace.mjs check <each path of the table> exits 0.
  4. .claude/settings.json is valid JSON, and permissions.additionalDirectories names each repository outside the workspace.

W5. Each repository

Ask one time: "Set up the project file of each repository now?" For each repository that the user picks, do steps 1 to 9 with the repository root as the root. Its ## Session harness names the same harness as the workspace, so that there is one start rule. The repository file is complete (Working rules included), because a session can also start in the repository alone. Its values win for that repository.

W6. Report

As in step 9, and also: the workspace folder and whether you ran git init, the repositories (path, remote, cloned or found), each repository outside the workspace in additionalDirectories, the .gitignore lines, and the repositories that are not set up yet. Tell the user to start the next session in the workspace folder.

Do not commit the files: not in the workspace, and not in a repository.

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.