agentleFS
agent-ixagent-ix/spec-skills/spec-blueprint/SKILL.md

spec-blueprint

Skill1 starsChanged 6 months agoMITView on GitHub

Query and apply spec blueprints for application archetypes. Use when starting a new spec, auditing existing FRs, or scaffolding domain objects.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Use this skill to determine the expected FR composition for a given application archetype (e.g., pg-data-service, web-app, …

    line 7
  2. Very specific:

    Look up the object type in object-type-guide.md — each row maps 1:1 to a spec-objects-* module repo (the canonical definition).

    line 73
  3. Very specific:

    Use the spec-write-fr skill to generate the FR (templates resolved from the relevant spec-artifacts-* module per filament-core FR-035 …

    line 74
  4. Distinctive:

    spec-write-fr: Write individual FRs using domain-typed templates

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Spec Blueprint Skill

Use this skill to determine the expected FR composition for a given application archetype (e.g., pg-data-service, web-app, faststream-worker).

When to Use

  • Starting a new spec for a known archetype
  • Auditing existing FRs for completeness
  • Scaffolding missing domain objects

Workflow

1. Identify the Archetype

Determine the Element type from one of:

  • The repo's element_id in catalog-service
  • The repo_type field
  • User input (e.g., "this is a data service")

Known archetypes with blueprints:

  • fastapi-service — REST API services
  • pg-data-service — Data services (extends fastapi-service)
  • faststream-worker — Message queue workers
  • web-app — React web applications
  • react-lib — React component libraries
  • application — Logical application groupings

2. Fetch the Blueprint

Via API (if catalog-service is running):

GET /api/v1/elements/{element_id}/resolved-pattern

Via seed data (offline reference; the canonical source is the spec-artifacts-* modules for archetypes / artifact_types and the spec-objects-* modules for object_types — both contribute via the Module Manifest, filament-core FR-035. Treat the table below as a cached projection, not the authority):

ArchetypeExpected FR Types
fastapi-serviceapi_endpoint(1+), dto(1+), configuration(1), middleware(0+), hook(0-1)
pg-data-serviceinherits fastapi-service + entity(1+), repository(1/entity), data_schema(1+), migration(1+)
faststream-workerqueue(1+), action(1+), event(1+), configuration(1), hook(0-1)
web-apppage(1+), ui_component(1+), configuration(1)
react-libui_component(1+)
applicationdomain(1), configuration(1), process(0+), event(0+)

Note: integration is a tag, not an object type. FRs defining integration contracts should use tags: [integration] in frontmatter (no object: field). The Application Detail View discovers integration content via tag filtering. Recommend at least one FR tagged integration for application and web-app archetypes.

3. Audit Existing FRs

For each entry in the blueprint:

  1. Scan spec/functional/ for FRs with matching object: frontmatter
  2. Count matches against cardinality
  3. Report gaps

Output format:

✅ entity: 3 found (required: 1+)
✅ repository: 3 found (required: 1-per-entity)
❌ migration: 0 found (required: 1+) — MISSING
⚠️ middleware: 0 found (optional: 0+)

4. Generate Missing FRs

For each gap marked ❌:

  1. Look up the object type in object-type-guide.md — each row maps 1:1 to a spec-objects-* module repo (the canonical definition).
  2. Use the spec-write-fr skill to generate the FR (templates resolved from the relevant spec-artifacts-* module per filament-core FR-035 artifact_types[]).
  3. Assign the next available FR ID.

Related Skills

  • spec-write-fr: Write individual FRs using domain-typed templates
  • specify: Initialize a new spec container
  • spec-object-review: Post-audit domain object integrity check

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.