Skip to main content

backfill-specification

Incrementally map a touched legacy test or Plan cluster to approved Specification assertions, drafting a new compact Specification only when none applies

跳到安装

来源信息

仓库
glowingkitty/OpenMates
最近来源活动
2026年9月9日 18:32
检测到的 SKILL.md 语言
英语
星标
46
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
backfill-specification
description
Incrementally map a touched legacy test or Plan cluster to approved Specification assertions, drafting a new compact Specification only when none applies
user-invocable
true
argument-hint
<test path or Plan cluster>
## Workflow 1. Run `python3 scripts/specifications.py check-test <path>` and inspect the generated registry before creating anything. 2. Search existing Specifications, neighboring tests, architecture docs, app metadata, REST/CLI/SDK/GUI surfaces, and relevant code to identify the feature. 3. If approved assertions apply, add per-test `specification-test` metadata with proof strength and surface, then regenerate the assertion index. 4. If no approved assertion defines the intended behavior, first extend the existing Specification for the owning feature or app skill. Create a bundle only when no existing contract fits. Extract stable truth from the whole feature or Plan cluster, not only one test. Separate historical implementation choices from durable behavior. 5. Invoke `define-specification`, including its requirement for one or two concrete, assertion-mapped examples for each added or changed requirement. Use natural-language scenarios or actual code/commands with expected results; do not paste internal fixture dictionaries into the human approval examples. Present the complete compact Specification, and wait for approval before mapping the test or changing implementation behavior. 6. Update the existing Plan with Specification references and evidence locations; do not replace its discovery, tasks, attempts, handoff, or evidence ledger. 7. Run `python3 scripts/specifications.py generate` and `python3 scripts/specifications.py check-generated` before deploy. ## Rules - Never infer that an existing passing test is approved product truth. - Search before creating; avoid one permanent Specification per historical Plan. - Touched legacy tests may not remain `legacy_unmapped` at deploy.
在 GitHub 查看