highway-nfrs
Manages the repository-wide nfr baseline. Use when highway-setup delegates the nfr baseline, after Controls finish or when setup runs again.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- highway-nfrs
- license
- Apache-2.0
- metadata
- { "usage": "Run highway-nfrs.", "version": "9.9.0" }
- description
- Manages the repository-wide nfr baseline. Use when highway-setup delegates the nfr baseline, after Controls finish or when setup runs again.
02 资源文件 4
- 资产文件assets/nfr-catalog.md906 B
- 资产文件assets/nfr-record.md979 B
- 参考文档references/proposal.md11.1 KB
- 参考文档references/record.md3.6 KB
03 SKILL.md 正文
highway-nfrs
Purpose
Collects nfrs when setup delegates this skill.
When to use
highway-setupdelegates this skill after Controls returnsFinished.highway-setupdelegates this skill when setup runs again.
When not to use
Do not create Objectives, Controls, Capabilities, or governance rules. Do not treat a recommendation or a queued title as a captured NFR. Do not report Status, Summary, Next Action, Blocking Reason, Missing, Complete, or Blocked. Do not emit Setup's operational-expectation transition. Setup already emitted it.
Inputs
library/knowledge/profile.mdwhen present.library/governance/objectives.mdandlibrary/objectives/when present.library/governance/controls.mdandlibrary/governance/controls/when present.library/governance/nfrs.mdwhen present.library/governance/nfrs/NFR*.mdwhen present.assets/nfr-record.md.assets/nfr-catalog.md.- The highway-experience skill, activated first.
- Delegation from
highway-setup.
Outputs
The complete structure is assets/nfr-record.md and assets/nfr-catalog.md.
- Updated NFR records and catalog after a review edit.
- New NFR records and catalog after the guided flow writes them.
Finishedreturned tohighway-setupafter review acceptance or a successful guided write.Finishedis not shown to the person.- One closing line after review acceptance or a successful guided write, when the person ran this skill directly.
Procedure
Activate the highway-experience skill before any output the person sees, and follow it for Highway's identity, the Experience Standard, and the storage contract.
User-visible interaction follows the Highway Experience Standard. Repository ownership stays with the person.
Emit only the active template. Follow this order: review when the catalog exists; otherwise recommend, then queue or ask, then capture, then identifier, title when needed, and write. Both paths end at close. Follow the Highway Experience Standard for attribution and acceptance wording. Use the accepted Organization Name from the Profile. Use Repository Name when no Organization Name is accepted. Do not ask for Profile, Objective, or Control facts already accepted.
An NFR is an operational expectation: how a solution needs to behave. Do not write an enforceable safeguard, an Objective, or an implementation plan.
Before a step in this table, read its file and follow it to the end.
| File | Steps |
|---|---|
references/proposal.md |
recommend, more, queue, ask, capture |
references/record.md |
identifier, title, write |
Entry
- Read
library/governance/nfrs.md. Then read each active record it indexes atlibrary/governance/nfrs/[ID].md, with "Read a file". - If the catalog is present and readable, and every active row has a readable record, go to
review. - If the catalog is absent, go to
recommendwhenprofile.md,library/governance/objectives.md, andlibrary/governance/controls.mdare readable. Otherwise go toask. - If the catalog is unreadable, or an active row has no readable record, stop. Say the NFRs could not be read. Leave every file unchanged. Do not return
Finished.
A removed row has no record file. Do not treat that as unreadable.
Classify
Classify the latest reply before any other action.
select-all: affirms every recommendation in the current set and adds no separate expectation.select: names one or more recommendations in the current set, by title or by number.own: supplies an expectation that is not a displayed title.more: asks for more suggestions.review-now: asks to review the queue, or affirms a queue prompt that asks whether to review.edit: adds, removes, corrects, splits, combines, or replaces substance.accept: affirms the current capture or review body and adds no fact.unknown: the person says they do not know.question: the person asks for an explanation.decline: the person explicitly drops the active set.
On a recommendation set, "looks good" is select-all. On a queue prompt that asks whether to review, "looks good" and "let's review" are review-now. On a capture or on review, "looks good" is accept.
review
Show every active NFR in catalog order. Omit frontmatter, omit the catalog, and omit removed rows. For each NFR emit:
[Title]: [Statement]
Why it matters: [Rationale]
Put --- between NFRs. Do not put --- after the last NFR.
When no active NFR is recorded, emit: No operational expectations are recorded yet.
Do not insert No system hosting or Direct purchase when that title is absent. A removed limit stays removed.
Then emit the validation block.
edit: emit one consequence sentence. Apply the edit to the named NFR. Preserve every NFR the person left unchanged. An added expectation becomes a new record. Write its rationale with therecommendrationale rule. A removed NFR deletes that record file and keeps its catalog row with statusremoved, so the id stays taken. Derive the id before writing. When the id is taken for a different title, go totitleand do not write yet. Otherwise rewrite the affected records and the catalog. Show the updated NFRs and emit the validation block. Stay onreview.accept: go toclose.unknown: show the NFRs and emit the validation block. Stay onreview.question: answer in one sentence. Show the NFRs and emit the validation block. Stay onreview.
Validation block:
What would you add, correct, or remove?
If this is accurate, just say so.
close
When highway-setup delegated this skill, return Finished. Emit nothing else.
Otherwise emit one line and stop. When at least one NFR is active, emit:
Your NFRs are recorded.
When no NFR is active, emit:
No NFRs are recorded yet. Run highway-nfrs when you have one to add.
Verification
- An existing readable catalog is shown with What would you add, correct, or remove?
- Acceptance of that review goes to
close. - Run by
highway-setup,closereturnsFinishedand emits nothing else. Run directly, it emits one closing line and no question. - A review edit rewrites the affected record and catalog, then shows the updated NFRs with the same question.
- An absent catalog and readable Profile, Objectives, and Controls begin with a recommendation set.
- Records and the catalog are written once, after the set is accepted or declined.
- Written records match
assets/nfr-record.md. - The written catalog matches
assets/nfr-catalog.md. - Setup receives
Finishedand the person does not see that word.
Error Handling
- An unreadable catalog or active record stops the skill, leaves every file unchanged, and does not return
Finished. - A failed review rewrite leaves every file unchanged, says what failed in terms the person can act on, and stays on
review. - A failed guided write leaves the baseline unchanged, says what failed in terms the person can act on, and stays on
write. - An absent or unreadable Profile, Objectives catalog, or Controls catalog uses
askand does not invent organizational facts.
Example
/highway-setup
04 同仓库更多 Skills
valid-skill
A fully conformant fixture skill used only by the tests to validate the authoring framework. Use when the tests exercise the validator.
invalid_skill_bad_id
Fixture whose directory name is not kebab-case, to test the id failure path. Use when the tests exercise the validator.
invalid-skill-undeclared-key
A fully conformant fixture skill used only by the tests to validate the authoring framework. Use when the tests exercise the validator.
invalid-skill-short-description
暂无简介
invalid-skill-relative-link
Fixture whose body carries a relative Markdown link target, to test the P8.7 failure path. Use when the tests exercise the validator.
invalid-skill-nondeterministic-criterion
Fixture whose decision criteria depend on when they are read, to test the P6.4 failure path. Use when the tests exercise the validator.