agentleFS
MetaMindTeamMetaMindTeam/ssot-kit/.claude/skills/init-project/SKILL.md

init-project

Skill1 starsChanged 4 months agoApache-2.0View on GitHub

Initialization of an EMPTY project per the SSOT canon: stack selection → materialization into an SSOT spec → activation of deterministic generators. Closes the "code is derivative of SSOT" loop from the first commit. Triggers: "new project", "init project", "initialize project", "from scratch", "start a project".

  • Reads credentials

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware 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.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Follow the canon (spec/standards/spec_driven_standard.md).

    line 11
  2. Distinctive:

    Ask for / accept the project description.

    line 39
  3. Very specific:

    Read stack_questions.yaml.

    line 51
  4. Very specific:

    Run the pack's activated generators on the real spec files: spec/data/schema.yaml → app/db/models.py (gen_sqlalchemy_models) · …

    line 81
  5. Very specific:

    Only what cannot be derived from the schema goes into app/services/.

    line 91

“Common” is measured: kept by at least 6 in 10 of the 42 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-project — project initialization (stack selection → generator activation)

Follow the canon (spec/standards/spec_driven_standard.md). This skill turns an empty repository into an SSOT-driven project, where most of the code is derived from declarations rather than written by hand.

Central Principle (do not violate)

The LLM writes the spec and business-logic-in-slots. The deterministic generator writes everything derivable from the SSOT schema and validates the LLM's output against it.

Reproducibility requires: everything derivable from the schema (models, DTOs, migrations, scaffold, CI) is generated by a deterministic script (0 tokens, bit-for-bit reproducible), NOT by the LLM. The LLM phase is limited to authoring the spec and business logic within validated templates. Economics: the repeatable path is cheaper than "compile once" (break-even ~17 repetitions).

Layer Boundary

LayerWho generates it
Scaffold (directories/CI/.env/git)deterministic script
Models/DTOs/migrations from spec/{data/schema,api/openapi}.yamldeterministic generator
API server-stubs from the contractdeterministic (OpenAPI templates)
Filling the spec from intentLLM
Business logic in the skeletonLLM (within validated templates)

Workflow (10 steps)

1. Project Description → Domains (LLM)

Ask for / accept the project description. Identify: domains and Bounded Contexts, core vs supporting, architectural style (monolith / modular-monolith / microservices — default modular-monolith, microservices only when triggered by: >1M req/day, >50 engineers, independent scaling), data flow (source→processing→persistence→consumers).

2. Grounding / DNA (LLM + human approve)

ssot-kit's grounding lives in CLAUDE.md + spec/product/vision.md — not a separate dna.yaml. Fill them: CLAUDE.md project name, stack, and Mission / feature filter (the outcome by which features are cut); spec/product/vision.md with the product intent + immutable principles + data-integrity rules. This is the grounding anchor (Spec Kit constitution.md / Kiro steering analogue) — done FIRST, shown for approval. Principles change only with human approval.

3. Stack Selection (Layer A: questionnaire → composition)

Read stack_questions.yaml. Walk the axes top-down, respecting when: (conditional gating — show a child axis only if its parent opened it). One axis = one choice (XOR). After each choice check compatibility: if the combination is in forbid — don't offer it / reject with a reason; require — ask for the dependency first. Duality: for a human — interactive; for an agent/CI — accept a ready-made blueprint.lock.yaml without asking questions.

4. Recording the Choice (Layer B: → SSOT)

Assemble blueprint.lock.yaml (a snapshot, see blueprint.schema.yaml): stack, activated_standards, activated_generators — from the activates blocks of the chosen values. This is the machine-readable project manifest (idempotency + future re-activation). Flag axes with codegen: llm-fallback — for these, zero-token codegen is unavailable, and the LLM writes the code (canon mode).

5. Activating the Stack Pack

Based on the pack from the chosen activates, wire in the package from packs/<pack>/pack.yaml. v1: the real pack is packs/python-fastapi/. Copy/wire its standards into the project's spec/standards/ and register the generators.

6. Scaffold (deterministic script, 0 tokens)

spec/ already ships with the kit (api/ data/ domain/ product/ standards/). Add the app skeleton: app/{db,api,services,schemas}, tests/, scripts/, CHANGELOG.md, CI, .env.example. Fill CLAUDE.md placeholders. NOT via the LLM — via packs/<pack>/scaffold.

7. SSOT Schemas (LLM writes the spec)

From the domain description, fill in (replacing the kit's example stubs): spec/data/schema.yaml (tables/columns — migrations derive from it), spec/api/openapi.yaml (API contract, SoT for back+front), spec/domain/entities.yaml (nouns + relations), spec/domain/invariants.yaml (domain invariants — for a money domain, a mandatory checklist: no-negative, append-only, integer-minor-units, idempotent-writes, audit-trail).

8. Generation Pipeline (deterministic generators, 0 tokens)

Run the pack's activated generators on the real spec files: spec/data/schema.yaml → app/db/models.py (gen_sqlalchemy_models) · spec/api/openapi.yaml → app/api/ (gen_fastapi_app) · Alembic scaffold (gen_alembic_env). Verify: same spec → same code. Generator versions are pinned in blueprint.lock.

9. Generation Boundaries (guard)

Lay out what_ai_can/cannot_generate (following the main-repo model 04_generation_rules): AI does NOT generate code without a spec, does NOT change the DNA, does NOT make L0-L1 decisions without review. Record this in spec/standards/.

10. Business Logic (LLM within validated templates)

Only what cannot be derived from the schema goes into app/services/. Every LLM output goes through structural validation against the SSOT schema. Write behavioral tests (TDD). Everything else is derivative.


Summary

The developer describes what (schemas), the pipeline implements how (generation). You write 100 lines of YAML — you get 1000+ lines of production code. Manual code is ~20% (business logic, complex queries, integrations, tests).

Skill Files

init-project/
├── SKILL.md                 # this workflow
├── stack_questions.yaml     # SSOT of selection axes (12 axes + activates + compatibility)
├── blueprint.schema.yaml    # schema for blueprint.lock.yaml
└── packs/
    └── python-fastapi/      # ✅ REAL pack (v1)
        ├── pack.yaml        # manifest: standards + generators + scaffold
        └── generators/      # deterministic (0 tokens): models/app/alembic/pytest

Other stacks (ts/go axes) → LLM-fallback until their packs appear (North-Star staged: the door is open).

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.