Write a feature request
An FR is a Markdown file in your repository. Its folder is its status, its frontmatter says what it may touch, and its requirements are the only yardstick.
You think the feature through with Claude, in a conversation with access to the code, and write the result down as an FR. From the moment it lies in ready/, egon takes over. Everything egon builds and checks comes from this file: what is missing in it is a stop condition, not an invitation to interpret.
Folders are the status
| Folder | Status | Who moves the file |
|---|---|---|
docs/features/draft/ |
being planned | you, in the conversation with Claude |
docs/features/ready/ |
ready to build | you: moving it here is the handover |
docs/features/done/ |
merged into the base | the core, in the same pull request as the code |
docs/features/blocked/ |
a stop condition held | the core, with a ## Blocked section, in a pull request of its own |
docs/features is the default; the profile sets another path with paths.features. While an FR is being built, it stays in ready/ and has a branch fr/<id> on GitHub: the branch is the reservation. An FR can be taken when it lies in ready/ and every FR in its depends_on lies in done/.
The file
The name is NNNN-title-in-kebab-case.md, with a four-digit number that is unique across all status folders. Write the text in the language of the profile; headings and keys stay in English, because the core reads them.
Frontmatter
| Field | Required | Content |
|---|---|---|
id |
yes | the number from the file name, in quotes |
title |
yes | the title |
origin |
yes | owner for FRs written by people |
depends_on |
yes | IDs of FRs that must be in done/ first; may be empty |
touches |
yes | the paths the FR may change |
new_dependencies |
yes | packages, binaries, actions or secrets that are new; empty means none |
contracts |
no | contracts or references the FR affects |
build |
no | model and effort of the build session, only values the profile allows in sessions.build_allowed |
Put IDs in quotes
Write id: "0042" and depends_on: ["0040", "0041"]. Without quotes, YAML reads an ID as a number: 0042 becomes 42. egon validate rejects an unquoted ID and never converts it silently.
touches
Paths relative to the root of the repository. An entry ending in / covers the directory and everything in it; any other entry covers exactly that file. Case counts. Not allowed: an empty entry, a leading /, .., a backslash, *, ? or [. For FRs in draft/ and ready/, egon validate also rejects entries that cannot match anything on the base: an entry without / that is a directory there, or one with / that is a file.
Agent configuration is changed by people
An FR whose touches reaches .claude/, CLAUDE.md, AGENTS.md or .mcp.json is not taken. This holds at any depth and regardless of case.
Sections
In this order, with these headings:
## Goal## Context## Scope## Out of scope## Acceptance requirements: numbered 1 to N, each one checkable. The last one asks that the pull request description maps every requirement to its evidence.## Test requirements:T1toTn, each with input and expectation, edge cases included.## Affected contracts: optional.## Stop conditions: your own, numbered, in addition to the general ones. They are reported asfr-1,fr-2and so on.## Owner checklist: what a person does by hand before or after the merge, or "None.". egon reports it after the merge and does not wait for it.## Review record: optional notes from reviewing the FR in the conversation. Remove it before the FR moves toready/.
## Affected contracts and ## Review record are optional; every other section must be there.
Two sections belong to the core and are appended by it: ## Implementation notes, with a metrics block, when the FR moves to done/, and ## Blocked when it moves to blocked/. Everything above them stays byte for byte as it was in ready/.
An example
---
id: "0042"
title: Health endpoint
origin: owner
depends_on: []
touches:
- src/server/health.ts
- src/server/routes.ts
- test/health.test.ts
new_dependencies: []
---
## Goal
Load balancers can tell whether the service is up.
## Context
The service has no endpoint that answers without a login.
## Scope
- A route GET /health that answers 200 with the body {"status":"ok"}.
## Out of scope
- Checks of the database or other services.
## Acceptance requirements
1. GET /health answers 200 with the body {"status":"ok"} and the content type application/json.
2. GET /health needs no login.
3. The pull request description maps every acceptance requirement to its evidence.
## Test requirements
- T1: GET /health without a session: status 200, body {"status":"ok"}.
- T2: GET /health: the header content-type starts with application/json.
- T3: POST /health: status 405.
## Stop conditions
1. The route would need a change to the login middleware.
## Owner checklist
None.
How egon builds it
- Tests first. The build session writes the tests from
## Test requirementsand commits them alone, with the typetest, before any code. Every later change to that commit shows up in the review. - Only what
touchesallows. The core compares every changed path withtouchesas it stands on the base. - Nothing new beyond
new_dependencies. A package, binary, action, secret or permission that is not named there is stop condition 4. - The FR is not changed. If a test or acceptance requirement would have to change, the FR stops (stop condition 2). You change it and move it back to
ready/.
Check an FR
egon validate docs/features/ready/0042-health-endpoint.md
egon next
egon validate checks FR files against these rules. egon next shows which FRs can be taken, which wait and which are refused.