estimating-designs
Create or refresh docs/estimates/: a root README with the overall effort, effort-weighted percent complete and a brief roadmap, plus one brief table per subsystem giving each detailed design's developer-day estimate and evidence-based percent of implementation complete. Use when the user asks for estimates, effort, sizing, how long features will take, progress, percent complete, how far along the implementation is, or a roadmap, and docs/detailed-designs/ exists.
- License 许可
- MIT
- 最近更新
- 2026-10-19
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- estimating-designs
- description
- Create or refresh docs/estimates/: a root README with the overall effort, effort-weighted percent complete and a brief roadmap, plus one brief table per subsystem giving each detailed design's developer-day estimate and evidence-based percent of implementation complete. Use when the user asks for estimates, effort, sizing, how long features will take, progress, percent complete, how far along the implementation is, or a roadmap, and docs/detailed-designs/ exists.
02 资源文件 5
- 参考文档agents/openai.yaml262 B
- 参考文档evals/evals.json4.7 KB
- 参考文档references/example-estimates.md1.4 KB
- 参考文档references/heuristics.md2.7 KB
- 脚本scripts/estimates.py15.9 KB
03 SKILL.md 正文
Estimating designs
This skill turns the detailed designs in docs/detailed-designs/ into
docs/estimates/: one brief table per subsystem and a root summary. Each design
is docs/detailed-designs/{subsystem}/{feature}/README.md, the shape the
writing-design-documents skill produces.
docs/estimates/
├── README.md overall effort, percent complete, subsystem table, roadmap
└── {subsystem}.md one row per feature design
Resolve scripts/ and references/ relative to this installed skill's folder.
Resolve docs/ paths relative to the consuming project, not the skill folder.
Read references/heuristics.md before estimating effort and
references/example-estimates.md before writing the files.
Step 0 - Designs gate
Check that docs/detailed-designs/ exists and holds at least one
{subsystem}/{feature}/README.md. If it does not, stop and tell the user
that estimates are made per detailed design and that the
writing-design-documents skill (or hand-written designs in that shape) comes
first. Do not estimate from requirements, notes or code alone, and do not create
docs/estimates/.
Step 1 - Inventory the designs
Run the bundled inventory. It lists every feature design with the counts the
heuristics start from: behaviours (### Behaviour headings or sequence*.puml
files), L2 requirements, components and data tables mentioned.
python "<installed-skill-folder>/scripts/estimates.py" inventory docs/detailed-designs
Then read each design README. The counts are a starting point; the prose decides what is new, reused, integrated or hard.
Step 2 - Learn the project context
Read the consuming project's AGENTS.md (and CLAUDE.md if it holds the rules)
for:
- Stack and process. Estimates are developer-days for an intermediate developer who knows the project's stack and follows its process (for example ATDD, page objects, mocked APIs, WCAG 2.2 AA). Name the stack in one sentence of the root README only if the user asks; otherwise keep it implicit.
- Source and test layout. Where implementation and acceptance tests live; this is where Step 4 looks for evidence.
- Deferred work. Any section listing deferred or out-of-scope work.
If AGENTS.md is missing, infer the stack and layout from the repository
(package manifests, solution files, src/, tests/) and say so in the reply.
Step 3 - Estimate effort
Follow references/heuristics.md:
- Start from about 1 day per behaviour plus 1 day of setup.
- Add time for new data tables, file uploads, search or filtering, external integrations, background jobs, real-time updates and tricky accessibility (dialogs, menus, drag and drop).
- Subtract time when the design reuses existing code.
- Round to whole days, typically 2 to 7. A design that comes out above 10 days is too large a slice; estimate it anyway and mention it in the reply.
Refreshing: keep an existing estimate unless the design changed since it was
written (check git log on the design folder). Stable estimates make progress
comparable over time.
Step 4 - Measure percent complete from evidence
Never guess. For each design:
- List its behaviours and L2 requirements.
- For each behaviour, look for its implementation in the source layout from
Step 2 and a passing or at least present acceptance test that exercises
it. Use
git log --oneline, file search for the feature's component and route names, and test titles or requirement IDs in tests. A behaviour counts as done only when both implementation and test exist. - Complete = done behaviours / total behaviours, weighted roughly by each behaviour's share of the effort, rounded to the nearest 10%. Use 0% when nothing exists and 100% only when every behaviour and requirement is implemented and tested.
If the tests can be run cheaply, run them; a failing test means its behaviour is not done. Otherwise state in the reply that presence, not passing, was checked.
Step 5 - Write the subsystem files
One docs/estimates/{subsystem}.md per subsystem folder, using the subsystem
folder name exactly. Keep it extremely brief: a title and a table, nothing else.
# Estimates: {subsystem}
| Design | Effort | Complete |
|---|---|---|
| {feature} | {n} days | {p}% |
- One row per feature folder, sorted alphabetically, named exactly as the folder.
- Write
1 dayfor one and{n} daysotherwise. - No prose, notes or totals. The single permitted exception is the deferred-work line in Step 7.
Step 6 - Write the root README
Run the rollup to compute the subsystem and overall figures. It reads the subsystem files, so write those first:
python "<installed-skill-folder>/scripts/estimates.py" rollup docs/estimates
Subsystem effort is the sum of its designs. Subsystem and overall complete are effort-weighted (sum of effort x complete / total effort), rounded to whole percent. Copy the printed figures; do not recompute them by hand.
# Estimates
- Overall effort: {total} days
- Complete: {p}%
| Subsystem | Effort | Complete |
|---|---|---|
| [{subsystem}]({subsystem}.md) | {n} days | {p}% |
## Roadmap
1. {subsystem(s) or design(s)}
- Delivery order. Table rows and roadmap steps run in delivery order: unfinished in-progress work first, then the remaining subsystems ordered by dependency (foundations such as identity, accounts and core entities before the features that consume them). Derive dependencies from the designs' C4 and class diagrams and requirement links.
- Roadmap. About five one-line steps. Drop finished subsystems. Each step names subsystems or individual designs, never dates.
Step 7 - Deferred work
Work that the project's AGENTS.md lists as deferred does not count toward
percent complete or the roadmap's unfinished steps. Where a design has deferred
parts, score only the rest and add this line directly under that subsystem's
table:
Excludes deferred work (see AGENTS.md).
End the root roadmap with one final step, Deferred: {what}, naming it. With no
deferred work, add neither.
Step 8 - Verify before finishing
python "<installed-skill-folder>/scripts/estimates.py" check docs/detailed-designs docs/estimates
The check fails when a subsystem or feature folder has no file or row, a row has no folder, rows are not alphabetical, a cell is malformed, a subsystem file holds extra prose, or the root README's figures disagree with the rollup. Fix every reported problem and re-run until it exits cleanly. Python 3 with the standard library is all it needs.
Then reply with the overall effort and percent complete, the roadmap's first
step, and any caveats: designs over 10 days, tests checked for presence only, or
a missing AGENTS.md.
Refreshing
Overwrite the existing files. Keep effort estimates stable unless the design changed, recalculate every percentage from the current code, and add or remove rows and files as designs are added or removed.
04 同仓库更多 Skills
writing-screen-composition
Create or update docs/screen-composition.md, a document that itemizes every page, dialog, notification and shell part from the HTML mocks and lists, for each, the component-library components it shall be composed of plus the UI that must be built locally. Also ensures AGENTS.md has the "Components library is mandatory (CRITICAL)" section. Use when the user mentions screen composition, which components a page uses, mapping mocks to a component library, local vs library UI, or before implementing an application against a component library; and whenever docs/mocks and a component catalogue exist but docs/screen-composition.md does not or is out of date.
writing-requirements
Create and manage software requirements documents (L1 high-level and L2 detailed with acceptance criteria) in docs/specs/. Use this skill whenever the user mentions requirements, specs, specifications, user stories, features to build, acceptance criteria, ATDD, or wants to define what a system should do before coding. Also use when the user says things like 'what should we build', 'let's plan the feature', 'write up what this needs to do', 'define the behavior', or describes functionality they want implemented -- even if they don't explicitly say 'requirements'. If the user is about to start coding a feature and there are no requirements yet, proactively suggest using this skill first. Requirements come before code. Always.
writing-html-mocks
Write static HTML mocks in docs/mocks/ for EVERY page, dialog and notification of a product in EVERY state (default, loading, empty, error, invalid, busy, success, no-results, forbidden, stacked...), responsive, light and dark, keyboard-accessible, with real copy and a coverage matrix. Use this skill BEFORE writing any frontend code, component, template, view or page; whenever the user says mock, mockup, wireframe, prototype, UI, UX, screen, layout, dialog, modal, toast, banner, empty/error/loading state, "what should this look like", "show me the UI", or describes a feature with a visible result; and whenever docs/specs or docs/detailed-designs exist but docs/mocks does not. Also use it to add missing states to existing mocks. Mocks come before implementation: if asked for frontend code with no mocks, say so and offer this first. Pair with extracting-design-systems to turn finished mocks into docs/design-system/.
writing-feature-prompts
Write a ready-to-run implementation prompt for a feature request or a bug fix in the current repository, save it outside the repository and open it in a text editor (Notepad on Windows). A feature prompt drives mocks, design system, requirements, detailed design, estimate update and incremental acceptance-test-driven implementation end to end without stopping; a bug-fix prompt drives reproduce, root cause, fix and documentation alignment. Use whenever the user asks to "create a prompt", "write a prompt for this feature" or "for this bug", wants a "prompt to build X" or "prompt to fix Y", or asks to open a prompt in Notepad.
writing-design-documents
Create software design documents and architecture write-ups from existing L1/L2 requirements in docs/specs/. Use for detailed designs organized by subsystem and feature, with requirement traceability and rendered PlantUML C4, class, and sequence diagrams in docs/detailed-designs/.
writing-agent-instructions
Writes the agent instruction files a repository needs so coding agents know how to work in it - AGENTS.md plus the CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md pointers - generated from a description of what the project shall be, for a project that does not exist yet. Use this whenever someone mentions AGENTS.md, CLAUDE.md, GEMINI.md, copilot-instructions, "agent instructions", "agent context files", "coding agent guidance", or asks to set up, scaffold, bootstrap, or initialise the conventions for a new project or repository. Use it too when someone describes a project they are about to start and wants an agent to follow its conventions, even if they never name any of these files - if they are standing at an empty directory describing what they intend to build, this is the skill.