agentleFS
marcusbelzmarcusbelz/di2-starter-kit/.claude/skills/init/SKILL.md

init

Skill0 starsChanged 5 months agoMITView on GitHub

One-time project bootstrap. Asks for the product vision and the tech-stack framework conditions, fills CLAUDE.md + .claude/rules/stack.md, and prunes the skills/rules this project does not need. Run this first in a fresh clone of the starter kit.

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

  • 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

  • iankikuSkill

    recover

    (forwward) Responds to a production incident — stop the bleeding first (roll back the last release / disable the bad change), then diagnose from logs and alerts, keep a status thread, and write the follow-up. The reverse of a normal deploy. Triggers on "prod is down", "roll back", "revert the last deploy", "the service is erroring", or an alert firing.

    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

14 rules. 0 are common, 4 are distinctive, and 10 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.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Read .claude/rules/stack.md.

    line 18
  2. Very specific:

    Ask the user (use their argument if they already described the idea, then fill gaps with AskUserQuestion):

    line 24
  3. Distinctive:

    Must-have features (MVP) vs.

    line 28
  4. Very specific:

    Keep this tight — /requirements Init Mode will expand it into a full PRD.

    line 31
  5. Very specific:

    Ask with AskUserQuestion (one question per axis.

    line 35
  6. Very specific:

    Every key in the stack.md Profile table must end up with an explicit value — asked or derived-and-confirmed, never silently guessed.

    line 58
  7. Distinctive:

    Delete the skills/rules that don't apply, using git rm -r (the clone is a tracked git repo).

    line 75
  8. Very specific:

    Always keep: init (until you finish — see Step 6), requirements, architecture, qa, review, bug, help, check-updates, security, and rules …

    line 93
  9. Distinctive:

    After deleting, show the user the resulting skill/rule list and confirm it matches expectations.

    line 97
  10. Very specific:

    If deploy != none: open .claude/rules/deploy-infra.md and replace its {{PLACEHOLDER}} host / container / path / secret facts with the …

    line 100
  11. Very specific:

    If database is a SQL engine and you kept db-migrations.md: confirm the migration command names.

    line 103
  12. Very specific:

    If auth != none and not Keycloak: note the actual provider in .claude/skills/auth/SKILL.md's context line so the diagnosis layers match the …

    line 104
  13. Very specific:

    After every file write, re-read it to verify the placeholders are actually gone (no leftover {{...}} in stack.md or CLAUDE.md).

    line 126
  14. Distinctive:

    If the user is unsure on an axis, default to keeping the corresponding skill/rule (a project can always prune later, but re-adding a …

    line 128

“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

Project Initializer

Role

You bootstrap a fresh clone of this starter kit into a concrete project. The kit ships as the maximal toolkit (every workflow + cross-cutting skill, every rule). Your job is to ask the user for the project's framework conditions (product vision + tech stack), record them as the single source of truth, and then reduce the toolkit subtractively to exactly what this project needs. After you, the regular workflow (/requirements → /architecture → …) takes over.

Gate — only run on an uninitialized project

  1. Read .claude/rules/stack.md. If it has no {{PLACEHOLDER}} values, the project is already initialized → tell the user: "This project is already initialized (see .claude/rules/stack.md). /init is a one-time bootstrap; use /requirements to add features." Then stop.
  2. Otherwise continue.

Step 1 — Product vision (the "Textwerk")

Ask the user (use their argument if they already described the idea, then fill gaps with AskUserQuestion):

  • What is the core problem this product solves?
  • Who are the primary users?
  • Must-have features (MVP) vs. nice-to-have?
  • Any hard constraints (timeline, team size, on-prem vs. cloud, data sensitivity)?

Keep this tight — /requirements Init Mode will expand it into a full PRD. You only need enough to write a 2–3 sentence vision and a one-line description.

Step 2 — Framework conditions (the tech stack)

Ask with AskUserQuestion (one question per axis; offer concrete options + let them type their own). Capture every value in the stack.md table:

AxisQuestionDrives pruning
RuntimePrimary language/runtime? (Python, Node/TS, Go, …)build/test/run commands
UIDoes the project have a user interface? (web UI / CLI / TUI / none)/ux, /frontend, rules/ui/, cookies.md
BackendDoes it need server-side logic / APIs? (yes / no)/backend, rules/backend.md
DatabaseData store? (none / postgres / mysql / mssql / sqlite / mongodb)rules/sql/, rules/db-migrations.md
MigrationsHow do schema changes ship? (plain-sql — the kit's in-house runner, see db-migrations.md / the stack's own tool: alembic, prisma, … / none). Only ask when database != none (else record none); default plain-sql for the shipped SQL vendors.rules/db-migrations.md (keep only if SQL-based)
Tests (optional)Keep the test scaffold? (yes / no) — currently the DB object tests under db/tests/. Only ask when database != none (with no database there is no scaffold to keep). Default yes when unsure.db/tests/
AuthAuthentication? (none / OIDC-Keycloak / OIDC-other / custom-JWT / session)/auth
DeployHosting / deploy target? (none / Docker on a VPS via SSH+CI / docker-compose / k8s / serverless)/deploy, rules/deploy-infra.md
CICI provider? (none / GitHub Actions / GitLab CI)deploy + check-updates wording
Env stagesEnvironments? (single / dev,prod / dev,int,test,prod)/deploy stage list
Feature prefixFeature-ID prefix? (default feat)feature naming

Two stack.md keys are derived, not asked, and confirmed with the user alongside the commands:

  • package_manager — follows from the runtime answer (Python → uv/pip/poetry, Node → npm/pnpm, Go → go mod, …).
  • The build / test / run / audit commands for the chosen runtime (e.g. Python: ruff check ., pytest, docker build ., pip-audit).

Every key in the stack.md Profile table must end up with an explicit value — asked or derived-and-confirmed, never silently guessed.

Step 3 — Write the framework conditions

  1. .claude/rules/stack.md — replace every {{PLACEHOLDER}} with the captured values (the Profile table, the build/test/run block, and STACK_NOTES). This is the authoritative record.
  2. CLAUDE.md — fill {{PROJECT_NAME}}, {{ONE_LINE_DESCRIPTION}}, {{TECH_STACK}} (a short prose summary), {{FEATURE_PREFIX}}, {{BUILD_TEST_COMMANDS}}. If ui is none, delete the UX (3) and Frontend (5) lines from the workflow list and the "Cookie banner" legal note.
  3. docs/PRD.md — replace the placeholder vision with the real 2–3 sentence vision + target users (leave the detailed roadmap for /requirements).
  4. features/INDEX.md — delete the shipped sample features (features/feat-0001-*.md … feat-0003-*.md and their INDEX rows — they are format illustrations, not project features), then set the feature_id_prefix example and reset the "Next Available ID" line to the chosen prefix (e.g. feat-0001).

Step 4 — Reduce the toolkit (prune what this project doesn't need)

Delete the skills/rules that don't apply, using git rm -r (the clone is a tracked git repo). Apply this matrix from the Step-2 answers:

ConditionRemove
ui == none.claude/skills/ux/, .claude/skills/frontend/, .claude/rules/ui/, .claude/rules/cookies.md
ui is a different stack (not React/Tailwind/shadcn)the UI rules ship only for one flavor (.claude/rules/ui/react-tailwind-shadcn/). Create .claude/rules/ui/<flavor>/ by copying + adapting it (the principles carry over, the syntax/component names change — see ui/README.md), then remove react-tailwind-shadcn/
backend == none.claude/skills/backend/, .claude/rules/backend.md
database == none.claude/rules/sql/ (whole tree), .claude/rules/db-migrations.md, db/ (whole tree — includes db/tests/), .github/workflows/db-*.yml + the db jobs in .github/workflows/ci.yml
tests == none (user opted out, database != none)db/tests/ (the test scaffold only — keep the rest of db/) + the "db/tests assertions" step in .github/workflows/ci.yml
database in {sqlite, mongodb}.claude/rules/sql/ (keep db-migrations.md only if the Migrations answer is SQL-based, i.e. plain-sql — else remove)
database == postgres.claude/rules/sql/mssql/ (keep only the matching vendor directory)
database == mssql.claude/rules/sql/postgres/ (keep only the matching vendor directory). Note: the db/ artifact tree is a PostgreSQL worked example — adapt it to T-SQL/sqlcmd or rebuild it per sql/mssql/
database in {mysql, sqlite, …} (SQL, no shipped ruleset)both shipped vendor dirs. Create .claude/rules/sql/<vendor>/ by copying + adapting a shipped one (quoting/dialect/identity differ — see sql/README.md)
auth == none.claude/skills/auth/
deploy == none.claude/skills/deploy/, .claude/rules/deploy-infra.md, .github/workflows/db-create.yml / db-deploy.yml / db-clean.yml / db-drop.yml (the SSH dispatch workflows — keep ci.yml if ci != none)
ci == none.github/workflows/ (whole tree)

Always keep: init (until you finish — see Step 6), requirements, architecture, qa, review, bug, help, check-updates, security, and rules general.md, documentation.md, stack.md, security.md.

After deleting, show the user the resulting skill/rule list and confirm it matches expectations.

Step 5 — Stack-specific fill-in (where a kept skill needs concrete facts)

  • If deploy != none: open .claude/rules/deploy-infra.md and replace its {{PLACEHOLDER}} host / container / path / secret facts with the project's real values (or leave clearly marked TODOs the user fills when the server exists). Trim the env-stage tables to the chosen env_stages.
  • If database is a SQL engine and you kept db-migrations.md: confirm the migration command names.
  • If auth != none and not Keycloak: note the actual provider in .claude/skills/auth/SKILL.md's context line so the diagnosis layers match the real setup.

Step 6 — Finish

  1. git rm -r .claude/skills/init (this skill removes itself — it is a one-time bootstrap). (Tell the user first; if they'd rather keep it for re-running, skip this.)
  2. Stage everything and propose a commit:
    chore: initialize project from starter kit (<runtime>, <ui>, <deploy>)
    
    - Filled .claude/rules/stack.md + CLAUDE.md tech stack
    - Pruned skills/rules not needed for this stack
    - Seeded docs/PRD.md vision
  3. Handoff:

    "Project initialized for <stack summary>. The toolkit is trimmed to what this project needs. Next step: run /requirements <your idea> to turn the vision into feature specs."

Important

  • Do NOT write application code or pick a stack on the user's behalf — only record what they choose and prune accordingly.
  • Confirm before deleting — show the prune list and get a yes before git rm.
  • After every file write, re-read it to verify the placeholders are actually gone (no leftover {{...}} in stack.md or CLAUDE.md).
  • If the user is unsure on an axis, default to keeping the corresponding skill/rule (a project can always prune later, but re-adding a deleted skill means copying from the template again).

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.