agentleFS
Ian-LouwIan-Louw/potion/skills/init/SKILL.md

init

Skill1 starsChanged 5 months agoMITView on GitHub

Use when starting Potion on a project for the first time — when the user says "potion init", "set up potion", or asks to start a new project with the Potion workflow and no .potion/ directory exists yet.

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 9 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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 3

    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:

    Not a git repository → offer git init (Potion requires git.

    line 23
  2. Very specific:

    Update STATE.md position to the first new phase and create its phases/NN-slug/ directory.

    line 39
  3. Distinctive:

    Run step 6's commit.

    line 41
  4. Distinctive:

    Understand the project: If the repo has code, spend a few minutes mapping it (stack, entry points, conventions) — do not launch a research …

    line 45
  5. Distinctive:

    If the user asks whether the idea is worth building, be direct — interest is not demand.

    line 60

“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

Potion Init

Inherit ${CLAUDE_PLUGIN_ROOT}/core/CORE.md. Creates the project's durable memory.

Emission contract — all of these exist before exit: .potion/PROJECT.md (goals, Key Decisions, Out of Scope, ## Phases checklist); .potion/STATE.md (position: phase 1); .potion/verify-env.md (recipe or none-needed: <why> — never absent); .potion/phases/01-{slug}/ directory; the merge=union line in .gitattributes; the verify-env.local line in .gitignore; the installed repo-side pre-commit hook (.git/hooks/pre-commit shim + .potion/scripts/pre-commit.js, or a surfaced refusal); the init commit. Before finishing, re-read the emitted files against this block; fix in place, or regenerate — at most once.

Guards

  • Not a git repository → offer git init (Potion requires git; commits are its ground truth). Declined → stop with the explanation.
  • .potion/ exists with unchecked phases → stop: "Potion is already initialized. Use /potion:resume to pick up, or /potion:discuss for the next phase."
  • .potion/ exists with ALL phases checked off → this is a new cycle, not an error. New-cycle procedure:
    1. Interview for the next batch of requirements (step 2 as written, including the verify-env question if .potion/verify-env.md is absent).
    2. Propose new phases numbered CONTINUING from the highest existing phase number (6 phases done → next is 07). If a .planning/ or superpowers-style grammar already exists, name the bridge explicitly — one line in PROJECT.md stating which grammar is source of truth for what; never pay a silent dual-grammar tax.
    3. APPEND them to PROJECT.md's ## Phases — never rewrite PROJECT.md, never touch Key decisions or Out of scope.
    4. Update STATE.md position to the first new phase and create its phases/NN-slug/ directory.
    5. Run step 6's commit.

Steps

  1. Understand the project. If the repo has code, spend a few minutes mapping it (stack, entry points, conventions) — do not launch a research pipeline; one pass is enough. If it's empty, this is greenfield. Done when: you can state stack + entry points in two lines (or "greenfield").
  2. Interview — one question at a time, per the question contract. You need:
    • What is this? (2-3 sentences)
    • The core value — the single thing that must work.
    • 3-7 active requirements as user-observable truths.
    • What is explicitly out of scope, and why.
    • How does a verifier get a live runtime session? (test account / seed command / emulator recipe — or explicitly nothing: a no-auth CLI needs only none-needed: <why>.) Done when: every bullet above has an answer you could paste into PROJECT.md — then stop asking. If the user asks whether the idea is worth building, be direct — interest is not demand; behavior counts, money counts. Unsolicited, keep it to one sentence at most.
  3. Propose phases. Break active requirements into 2-6 phases, each with a goal stated as an outcome ("users can authenticate") not an activity ("build auth"). Present the list, adjust once, lock it. Done when: the user has approved the phase list.
  4. Write the state from ${CLAUDE_PLUGIN_ROOT}/templates/:
    • .potion/PROJECT.md — filled template, phases appended as a ## Phases list with checkboxes.
    • .potion/STATE.md — position: Phase 1, no plans yet, status: planning.
    • .potion/verify-env.md — from templates/verify-env.md, filled with the interview answer (recipe or none-needed: <why>).
    • .potion/phases/01-{slug}/ — empty directory for the first phase. Done when: all four paths exist on disk.
  5. Housekeeping: append .potion/learnings.jsonl merge=union to .gitattributes (append-only files merge sanely across branches). Append .potion/verify-env.local to .gitignore (create .gitignore if absent) — one line, with the comment "secret values for the runtime session recipe". Install the repo-side hooks: run sh "${CLAUDE_PLUGIN_ROOT}/scripts/install-repo-hooks.sh" from the repo root (installs the pre-commit secret mirror + ci-verify copy into .potion/scripts/). If it refuses over an existing pre-commit hook, surface the refusal to the human and ask before re-running with --force — never force unprompted. Then offer CI adoption as ONE question: copy ${CLAUDE_PLUGIN_ROOT}/templates/ci.yml to .github/workflows/potion-verify.yml? (Mechanical verify on push/PR; no key needed.) Skip silently only if the user already declined CI. Done when: grep merge=union .gitattributes and grep verify-env.local .gitignore each print one line, and the installer reported the pre-commit shim installed (or its refusal was surfaced).
  6. Commit. Done when: git log -1 --oneline shows chore(potion): initialize project memory.

Exit

Report what was created and the phase list. Next up: /potion:discuss for the next unchecked phase.

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.