Add GSP init and AI usage tooling

This commit is contained in:
2026-05-06 19:40:55 +08:00
parent 67a1bf2600
commit 1478972e53
17 changed files with 870 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
# AI Usage 0.1
- Read `gsp.manifest` first.
- Treat `design/` as the default GSP source directory.
- `.gsp` files use YAML.
- Preserve `id`; do not rename it unless explicitly requested.
- `id` is the unique identity of a GSP unit.
- Use only fields valid for the declared GSP version.
- `with` means related design context.
- `refines` means single-source refinement.
- Empty `context` means placeholder.
- Do not invent missing referenced GSPs silently.
- Use `gsp validate` after editing GSP files.
- Use `gsp index` to locate GSP units.
- Use `gsp trace <id>` to inspect relations.
- Use `gsp flatten <id>` before implementation or task splitting.
- Use `gsp pack <id>` when a compact AI context is needed.
- Use `gsp stage-check --stage <stage>` before stage handoff.