agentleFS
mentealternementealterne/GYOS/skills/feature/SKILL.md

feature

Skill1 starsChanged 5 days agoApache-2.0View on GitHub

Builds a feature in a product GYOS set up, the Knowledge-Driven way: finds the bounded contexts it touches, hands the work to their domain skills, confronts it with the recorded decisions and promises, then example mapping, a failing scenario, test-first implementation, real checks, and the knowledge updated in the same change. Use when the user runs /gyos:feature, or asks to build, add or change a behaviour of the product ("add late fees", "patients can cancel online") and the work spans more than a one-line fix.

84 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use bug, bugfix 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.
  • paulocsbSkill

    bug

    Investigation playbook for fixing a bug. Walks through 5 phases: reproduce → isolate → root cause → propose fix → validate. Forces concrete reasoning with code reads, log inspection, and git blame instead of pattern-matching guesses. Use for any non-trivial defect.

    Also in 9 projects that use this

  • team-attentionSkill

    bugfix

    Root cause based one-shot bug fix. debugger diagnosis → requirements.md generation → /execute. /bugfix "error description" Full investigation pipeline: debugger + gap-analyzer + standard verify. QA suggestion after successful fix.

    Also in 8 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 11 projects that use this

  • marylinSkill

    recover

    Recover work from a crashed or interrupted session. Use when Claude crashed mid-task, after an unexpected exit, when you see 'stale sessions detected', or when you lost context and need to figure out what was happening.

    Also in 3 projects that use this

  • codebycoreySkill

    adopt

    Adopt an existing plan from conversation context into delta-spec format. Use when importing a plan, adopting planning that already happened, capturing plan mode output, or bringing in prior design work.

    Also in 4 projects that use this

  • AWSSkill

    map

    Map verified service capabilities against customer-provided control framework and threat model. Produces mapping-results.json, controls-catalog.md, and framework-mapping.md. Supports pluggable frameworks: CCMv4, NIST 800-53, CIS Benchmarks, ISO 27001, etc. Split into 4 focused sub-skills for better accuracy; this skill orchestrates them.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 78 edited versions we read keep these.

  • 3

    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. Distinctive:

    Read only the context map and the glossaries of the candidate contexts, never every skill.

    line 26
  2. Very specific:

    Pending promises: If the feature is one of the promises listed as not built yet in the skill's scenarios.md, it leaves that list.

    line 48
  3. Very specific:

    The example area: If the module still carries the template's example area (its state-of-the-code.md says so), the first real feature …

    line 53
  4. Very specific:

    no deploy yet: delete the module's drizzle/ folder and run db:generate, so the history starts from the real schema.

    line 58
  5. Distinctive:

    add it to each context's Active table.

    line 83
  6. Very specific:

    every tier in the testing.md of each skill you worked in, with the commands it gives.

    line 91
  7. Distinctive:

    Don't commit unless the user asks.

    line 102

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

Feature

The daily driver. A request for behaviour comes in; it leaves as code, tests and knowledge that agree with each other. The domain skills do the work; you route it to them and hold the parts that belong to none of them.

Before anything

AGENTS.md, docs/context-map.md and .claude/skills/ must exist. If they don't, the product wasn't set up with GYOS: suggest /gyos:init and stop.

1. Find the contexts

Read only the context map and the glossaries of the candidate contexts, never every skill. Match the request's words against the glossaries and the map's purposes.

The request touchesDo
One context with a skillHand over to that skill (step 2)
Several contextsSplit the request into one part per context, plus the junctions between them (step 3)
Something no context ownsSay so. If it carries its own language and rules, suggest /gyos:context; if it's plumbing, work it with the ordinary tools
Words with two meanings across contextsAsk which one the user means before anything else

Tell the user, in one line, which contexts you will work in and why.

2. Hand over to the domain skill

Invoke the context's skill and follow its workflow.md Change protocol, step by step. Don't run a lighter version of it: clarify, load, confront, gap analysis, example mapping, a failing scenario or test, implement, verify, update knowledge, record.

What you add on top:

  • The gap analysis is shown before any code: what exists, what's missing, which files will change, which promises and decisions are involved. The user says go.
  • Pending promises. If the feature is one of the promises listed as not built yet in the skill's scenarios.md, it leaves that list.
    • With BDD + TDD, it becomes a .feature file, plus a row in the scenarios.md index.
    • With the other styles, it becomes a promise written in scenarios.md, as Given / When / Then with real values.
  • The example area. If the module still carries the template's example area (its state-of-the-code.md says so), the first real feature replaces it: remove the example's code, scenarios, tests and schema table. For the database, ask the user whether any deploy has run this module's migrations. Never guess. Then follow the module standard (docs/standards/module.md):

    • no deploy yet: delete the module's drizzle/ folder and run db:generate, so the history starts from the real schema;
    • already deployed: migrations are expand-only. Leave the example table in place, unused, and add a todo to drop it in a later deploy, once no running version reads it.
    • The Gherkin tooling, unless the style is BDD + TDD. With "TDD only" or "pragmatic" (docs/decisions/0002-testing-style.md), the example's features/, cucumber.mjs, tsx-register.js, the test:scenarios script and the Cucumber dependencies go too.

    Then close the state-of-the-code.md entry and its todo. If state-of-the-code.md ends up empty, delete it: the standard allows no empty files.

  • Decisions taken on the way are recorded as the skill's rules say, in the same change.

3. Work that spans contexts

  1. Each context's part goes through its own skill, in the order the dependency runs: upstream first.
  2. The junction belongs to neither. Name it, say it belongs to neither context, and ask the user who owns it before implementing. The default is the host's composition root, where apps/api builds the modules and wires one module's port to another.
  3. If the junction is new, record it with /gyos:decide's steps (invoke the gyos:decide skill). They ask the user for the reasons, the cost and the alternatives, never fill them in, and take the next free ADR number. The ADR starts from ${CLAUDE_PLUGIN_ROOT}/templates/docs/decisions/junction.md. Then:
    • link it from the map's Junctions table;
    • add it to each context's Active table.
  4. A change to something a context publishes applies that context's confront rule, even when the request came from the other side. That covers an operation, a contract type, a published view, or an event.

4. Close

Verify for real, and report what each command printed:

  • every tier in the testing.md of each skill you worked in, with the commands it gives;
  • pnpm typecheck across the workspace;
  • node scripts/gyos-doctor.ts, if it exists.

Summarize:

  • what changed, per context;
  • which promises were added or changed;
  • which decisions were recorded;
  • which development/ files were written;
  • what was deferred, and where it was written down.

Don't commit unless the user asks.

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.