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
- kendrick/working-memory-kittheir own version, first seen Nov 29, 2026
- guhcostan/claude-mega-braintheir own version, first seen Nov 29, 2026
- flegars/greenlyttheir own version, first seen Nov 29, 2026
- nuncaeslupus/doc-controltheir own version, first seen Nov 29, 2026
- mentealterne/GYOStheir own version, first seen Nov 29, 2026
- michalzan/foremantheir own version, first seen Nov 29, 2026
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.
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
skyllwtSkillexp-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
skyllwtSkillexp-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
gaebalaiSkillcodex-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
gaebalaiSkilldesign-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
Other versions156 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 156
- microsoft/vscode★ 196ksame name
- mcollina/skills★ 2ksame name
- skyllwt/OmegaWiki★ 1.7ksame name
- DAIR-AutoResearch/AutoSci★ 1.7ksame name
- PKU-DAIR/AutoSci★ 1.7ksame name
- skyllwt/AutoSci★ 1.7ksame name
- TokenRollAI/cc-plugin★ 487same name
- pipecat-ai/gradient-bang★ 420same name
- AlexPEClub/ai-coding-starter-kit★ 382same name
- dannysmith/tauri-template★ 317same name
146 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- code-authoringSkill
- code-healthSkill
- commit-blocksSkill
- cookbook-writingSkill
- debug-rcaSkill
- doctorSkill
- gitignoreSkill
- goal-loopSkill
- handoffSkill
- lead-mergeSkill
- merge-auditSkill
- operatorSkill
- patch-fanoutSkill
- port-auditSkill
- solution-specSkill
- system-designSkill
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
- Very specific: line 34
Never read a secret file: Do not open .env, .env.*, secrets/, *.pem, *.key, or files that the project's ## Secrets section names.
- Distinctive: line 48
Exactly one start rule: After the run, the project file has one instruction about what runs first in a session.
- Distinctive: line 57
Run the scan in the folder where the session runs:
- Distinctive: line 84
If the target has changes that are not committed, tell the user before you change it.
- Distinctive: line 96
Read only the build and configuration files.
- Very specific: line 114
Do not copy the guidance lines (>) or the "Examples by stack" tables of the template into the project file.
- Very specific: line 128
If you find none, the ## Session harness section gets the template default: "Invoke /shark:operator first, before the first answer."
- Distinctive: line 131
If you find one, ask the user which one leads.
- Very specific: line 140
When an existing ## Session harness section names a harness, keep it.
- Distinctive: line 142
When shark leads, check the description of the orchestrator's own skill or agent file.
- Very specific: line 167
If git ignores .claude/settings.json (git check-ignore -q .claude/settings.json exits with 0), the setting stays on this machine only.
- Distinctive: line 172
Run the check script:
- Distinctive: line 210
Do not write the block in this step.
- Very specific: line 222
If the target already has a ## Working rules section with no markers, do not add a second one.
- Distinctive: line 231
After the user says yes, write the files in this order:
- Distinctive: line 232
Write the project sections to the target (the Write tool for a new file, the Edit tool for an existing one).
- Very specific: line 237
If apply exits with 2, the shell cannot write the file (for example in a sandbox).
- Very specific: line 242
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 …
- Very specific: line 245
Run the install commands that the user approved, one at a time, exactly as doctor.mjs printed them.
- Very specific: line 247
Run one action in each Bash command.
- Very specific: line 250
Run working-rules.sh check <target> again.
- Distinctive: line 252
Check that each of the eight section headings occurs one time in the target.
- Very specific: line 253
Check that the target has one start rule only: the ## Session harness section, and no other "first" instruction that names a different …
- Very specific: line 256
Check that .claude/settings.json is valid JSON and that its outputStyle is the value that the user agreed: node -e …
- Very specific: line 258
Run doctor.mjs again, without --no-smoke.
- Very specific: line 260
When the analyze rows and the analyzers are ok, record the baseline:
- Distinctive: line 285
start a new session, so that Claude Code reads the new project file and the output style.
- Very specific: line 286
check the two lists in ## Secrets: the deny-secrets hook of the kit reads them and refuses tool calls on those files.
- Very specific: line 288
run /shark:doctor again after a new language or a new machine.
- Distinctive: line 290
Do not commit the files.
- Distinctive: line 307
Ask in one message, together with the questions of W2.
- Very specific: line 393
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 …
- Distinctive: line 404
Do not commit the files: not in the workspace, and not in a repository.
“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.
Files
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:
| Part | Lines | What 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 harness | Adds each missing section, with values from the repository. |
## Working rules | To the end of the file | Adds it between markers, word for word, with the script. |
Rules
- 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. - Never read a secret file. Do not open
.env,.env.*,secrets/,*.pem,*.key, or files that the project's## Secretssection names. Find the setting names from.env.exampleor from the code, never from the secret file. - 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.
- Show the change before you write it. Show a short summary and the new sections. Write only after the user says yes.
- Do not commit. Tell the user which files changed. The commit is a decision of the user.
- Install only after a yes, and only the commands that
doctor.mjsprints. They are pinned and hash checked, andinstall-tools.shputs 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 usesudo, never use--break-system-packages, and never install a shark tool into the system Python or the project environment. Amachinefix (for example thepython3-venvpackage) is for the user to do. When the user says "do not install", list the commands and install nothing. - 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.
- 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 initandgit cloneonly 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" scankind | Meaning | Action |
repository | The root of a git repository | Steps 1 to 9 on this repository. |
inside-repository | A subfolder of a git repository | Steps 1 to 9 on the repository root. Tell the user. |
project | No git, but the build file of one project (markers) | Steps 1 to 9 on this folder. |
workspace | Empty, or it holds git repositories (repos), or its project file has ## Repositories | Ask: "Set up this folder as a multi-repo workspace?" On a yes, do Workspace mode. On a no, steps 1 to 9. |
folder | None of these | Ask 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 has | Target |
CLAUDE.md only | CLAUDE.md |
AGENTS.md only | AGENTS.md |
Both, and CLAUDE.md imports AGENTS.md (a line @AGENTS.md) | AGENTS.md |
| Both, with no import | Ask the user. Recommend CLAUDE.md, because Claude Code always reads it. |
| Neither | Make 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.
| Value | Where to look (examples for more than one stack) |
| Commands | package.json scripts, Makefile, justfile, Taskfile.yml, pyproject.toml, tox.ini, noxfile.py, go.mod with go test, Cargo.toml, the CI workflow files |
gate:fast | The fast checks of CI: lint, type check, unit tests. Not the integration tests. |
gate:full | All the CI jobs, with the integration tests |
| Architecture rules | An 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 layout | The docs/ tree, a decisions log, a handoff file |
| Invariants | Do not guess. Suggest the template examples that fit the code (for example "Money" when the code has prices), and ask. |
| Owner rules | Do not guess. Suggest the template defaults ("Push only when the owner asks", the 10-minute rule for long checks). |
analyze:file, analyze:full | Take the rows that doctor.mjs gives (step 6). Keep existing analyzer rows. |
analyze:diff | none, unless the project has its own diff scanner. |
arch:check | The 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:
| Sign | Where |
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 text | The 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.json | Action |
| Does not exist | Make it with only the outputStyle key. |
Exists, with no outputStyle key | Add the key. Keep every other key and its value. |
Has "outputStyle": "shark:asd-ste100" | Change nothing. |
Has a different outputStyle | Ask 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-smokeIt finds the languages of the repository and checks each part. It installs and writes nothing. /shark:doctor runs
the same script at any time.
| Area | Items |
| debugger | The 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) |
| tools | python3 3.9 or later with venv, only when Lizard or debugpy must be installed |
| code-health | Opengrep (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 |
| guards | The ## 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:
- Installs (each with its scope: the shark tool folder, the npm cache, the machine). The report of the script names the tool folder.
- Files that init adds: the starter rules in
.shark/rules/, the.gitignoreline. - 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 code | Meaning | Action |
0 | The block is the same as the template. | Change nothing. |
3 | The target has no block. | Add it in step 9 with working-rules.sh apply <target>. |
1 | The 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
- Show the summary: the target file, the sections added, the rows added, the Working rules action, and the output style action.
After the user says yes, write the files in this order:
- Write the project sections to the target (the Write tool for a new file, the Edit tool for an existing one).
- 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 afterapply: a Write replaces the whole file and removes the block. If you must change a section afterapply, use the Edit tool. - If
applyexits with2, the shell cannot write the file (for example in a sandbox). Then runworking-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. - Change
.claude/settings.jsonwith 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. - 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.gitignoreline with the Edit tool (or the Write tool when there is no.gitignore). - Run the install commands that the user approved, one at a time, exactly as
doctor.mjsprinted 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.- Run
working-rules.sh check <target>again. Expect exit code0, or1when the user kept a stricter rule. If it gives3, the block is missing: add it again as in step 2, and check again. - Check that each of the eight section headings occurs one time in the target.
- Check that the target has one start rule only: the
## Session harnesssection, 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). - Check that
.claude/settings.jsonis valid JSON and that itsoutputStyleis the value that the user agreed:node -e 'console.log(JSON.parse(require("fs").readFileSync(".claude/settings.json","utf8")).outputStyle)'. - Run
doctor.mjsagain, without--no-smoke. The smoke check runsanalyze:fileon one source file of each language. Each item that was fixed must now beok. 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 recordIt writes
.shark/health-baseline.jsonwith 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.mjsresult, as a table with one row for each item that the script printed, also eachokitem (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 asok; - the baseline counts, and that
.shark/health-baseline.jsonand.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: thedeny-secretshook of the kit reads them and refuses tool calls on those files; - run
/shark:doctoragain 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 result | Action |
empty: true | Do 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 empty | Show the found repositories (path, remote). Ask which ones to manage. The user can add more paths or URLs. |
empty: false, no repos | Tell 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 inapi/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:
git initin the workspace, whengitInitis false. Do not add a remote. When the scan givesouterRepository, 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.- The clones of W1.
The project file of the workspace (step 1 chooses the target:
AGENTS.mdwhen 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 harnessFill
## Invariants,## Secrets,## Docs layout,## Owner rulesand## Session harnessas 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 rulesor## Test scope: they belong to each repository.working-rules.sh apply <target>, as in step 8..claude/settings.jsonof the workspace, with the Edit tool (the Write tool for a new file), keeping every other key: theoutputStyleof step 5, and each repository outside the workspace (inside: false) inpermissions.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"] } }.gitignoreof 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
working-rules.sh check <target>gives0.- The target has
## Repositoriesone time, with one row for each repository, and one start rule. workspace.mjs check <each path of the table>exits0..claude/settings.jsonis valid JSON, andpermissions.additionalDirectoriesnames 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.
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
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.

