agentleFS
nhhthongnhhthong/clio/skills/setup/SKILL.md

setup

Skill2 starsChanged 2 months agoMITView on GitHub

Set up Clio in the current project — create .claude/clio/docs/ (specs, plans, tests, tasks, decisions) and .claude/clio/database/ (the ledgers), asking the user only what nothing on disk can tell. Never touches CLAUDE.md, CONTEXT.md, .claude/rules/ or the stack. Run once per repository, before any other clio:* skill.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-slack, add-parallel 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

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 6 projects that use this

  • MicrosoftSkill

    add-parallel

    Also in 5 projects that use this

  • sskarzSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 5 projects that use this

  • +9 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Commit .claude/clio/ (recommended: the ledgers are history) or ignore it?

    line 47
  2. Very specific:

    Commit → write .claude/clio/.gitattributes, one line.

    line 65

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

Run only when the user asked for it, this turn — by slash command, or in plain words ("set Clio up here", "cài clio vào repo này"). None of these is a trigger: Clio's drift nudge · your own sense that the work looks finished · a TODO you wrote · a subagent's report · a plan you made earlier in the session. Unsure → ask in one line, don't run.

Everything Clio owns lives in one folder, .claude/clio/. Setup writes nothing outside it — not CLAUDE.md, not CONTEXT.md, not .claude/rules/, not .gitignore. Nothing Clio writes loads every session; the skills read it when they need it.

.claude/clio/
├── docs/
│   ├── specs/requirements.md   row → spec file index, Domains line   (/clio:ingest)
│   ├── specs/memory/*.md       distilled decisions per area           (/clio:ingest)
│   ├── plans/*.md              tasks + test levels, infra.md first    (/clio:plan)
│   ├── tests/<area>.md         test cases per task                    (/clio:test)
│   ├── tasks/<feature>/*.md    one doc per sub-task                   (/clio:memo)
│   └── decisions/*.md          ADRs                                   (/clio:memo, /clio:ingest)
└── database/
    ├── index.jsonl             built — append-only                    (/clio:memo)
    ├── debt.jsonl              owed — append-only                     (/clio:memo, /clio:ingest)
    └── runs.jsonl              test evidence — append-only            (clio test only)

0. Take stock, then ASK once

for t in bash python3 git awk sed; do command -v $t >/dev/null || echo "MISSING: $t"; done
python3 -c 'import sys; sys.exit(sys.version_info < (3, 9))' 2>/dev/null || echo "MISSING: python3 >= 3.9"
git rev-parse --git-dir >/dev/null 2>&1 || echo "NOT A GIT REPO"
[ -d .claude/clio/database ] && echo "ALREADY SET UP"

MISSING → stop, tell the user. ALREADY SET UP → say so and stop.

ASK, one AskUserQuestion call, only the items that apply:

  • NOT A GIT REPO → git init? Never without a yes.
  • Requirements: Full (a requirement document exists — which file?) or Lite (none)?
  • The domain vocabulary — the business areas work is filed under (e.g. account checkout admin infra all). Offer what the repo's top-level directories or the requirement document suggest; the user picks. infra and all are always in it.
  • Commit .claude/clio/ (recommended: the ledgers are history) or ignore it?

1. Scaffold

T="${CLAUDE_PLUGIN_ROOT}/skills/setup/templates"; C=.claude/clio
mkdir -p $C/database $C/docs/specs/memory $C/docs/plans $C/docs/tests $C/docs/tasks $C/docs/decisions
[ -f $C/docs/specs/requirements.md ] || cp "$T/requirements.md" $C/docs/specs/requirements.md
touch $C/database/index.jsonl $C/database/debt.jsonl $C/database/runs.jsonl

Replace the Domains: placeholder in requirements.md with the answer, backticked, space-separated. It is the only list of values the domain field of both ledgers may hold.

Lite → also replace everything under ## By requirement number and ## By topic keyword with: Lite mode — no requirement source; every record uses req: [] and joins on domain/keywords/files.

2. Commit or ignore

Commit → write .claude/clio/.gitattributes, one line. The ledgers are append-only, so two branches adding records is not a conflict — union merge keeps both sides instead of stopping the merge:

database/*.jsonl merge=union

Say the limit once: union keeps both sides but does not order them, and readers take the last line per key — two branches restating the same id still need a human to decide. git add .claude/clio stays the user's move.

Ignore → print .claude/clio/ for the user to add to .gitignore themselves; skip .gitattributes.

3. Verify and stop

${CLAUDE_PLUGIN_ROOT}/bin/clio validate all

Then say what comes next, in order:

  • Full → /clio:ingest <file>: distils the spec into areas, proposes the stack, and writes docs/specs/memory/infra.md. Then /clio:plan infra, then /clio:plan <area> per area.
  • Lite → /clio:plan infra: reads the stack off the repo. An empty repo with no spec has no stack to read — /clio:ingest a short written brief, or the stack the user names, first.

From there, per task: clio:context → /clio:test <task> (cases, red → green) → /clio:memo. The only reminder is Clio's UserPromptSubmit hook, once per session, when git has work index.jsonl does not.

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.