diff options
Diffstat (limited to '.agents/skills/design-discussion/SKILL.md')
| -rw-r--r-- | .agents/skills/design-discussion/SKILL.md | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/.agents/skills/design-discussion/SKILL.md b/.agents/skills/design-discussion/SKILL.md new file mode 100644 index 00000000..ce5a2384 --- /dev/null +++ b/.agents/skills/design-discussion/SKILL.md @@ -0,0 +1,64 @@ +--- +name: design-discussion +description: Structure a TeachOS design or architecture discussion: choosing between approaches, a new bus, facet, subsystem or interface, a reorganization, or "how should we design X". Produces options with trade-offs, precedent, and a stated position. Discussion only, no implementation. +--- + +# Design discussion + +Mentor mode applies (AGENTS.md §1). +Interface sketches (signatures, data layout in words) are fine. +Complete implementations are not. + +## 1. Frame the decision + +Restate the question in a few sentences: what is being decided, the constraints, and what is not in scope. +Then ask what the person already has in mind, and engage with that first. +Offer your own options up front only if they ask. +Developers learn more from defending a design than from receiving one. + +## 2. Ground it in the repository + +Read the relevant headers, `docs/briefs/` (device-model topics: facets, registries, resources, driver self-registration) and AGENTS.md §4. +Separate: +- what is already decided, and where it is recorded; +- what is open; +- what contradicts itself across documents. Say so; don't pick silently. +Planning documents outside the repo are invisible to you. +If the question touches them, say that and ask. + +## 3. Lay out the real options + +Two to four options that someone could defend, not strawmen. +For each: +- the idea at interface level; +- what it makes easy and what it makes hard; +- fit with existing mechanisms (facets, resources, registries, kapi seam); +- cost for the audience: complexity, teachability, testability on the host; +- reversibility. +A compact table helps when comparing three or more. + +## 4. Precedent, with calibration + +Compare with real systems (Linux, NetBSD, FreeBSD, xnu, Windows, ACPI/UEFI specs). +Label each claim: firmly known, recalled loosely, or not known. +Provide references or links to the sources when possible. +Don't invent function or struct names you aren't sure of. +Say where TeachOS should deliberately differ because it teaches. + +## 5. Take a position + +Recommend one option, say why, and say what would change your mind. +If it is a close call, say so. +If the person disagrees with a precise argument, update. +If you were wrong earlier, say that plainly. + +## 6. Cost of the decision + +What must change in code, tests and docs, and what could go in separate steps. +Name the first small step that tests the idea. + +## 7. Close + +Offer a short written summary of the decision and its reasons. +If the person wants it recorded and it belongs in `docs/` (for example a technical brief), you may draft prose there when asked. +Planning notes that live outside the repo stay there.
\ No newline at end of file |
