docs(compose-solution): prior-art grep paths + phase-5 cross-refs for 10 pipelines + 21 primitives

This commit is contained in:
Parfii-bot 2026-04-21 21:33:11 +08:00
parent 7acacc8fb7
commit 7bffcdf037
2 changed files with 27 additions and 1 deletions

View file

@ -8,7 +8,14 @@ For EACH component from Phase 2, run three independent searches in parallel
```bash
# Replace <keywords> with the component's 3-5 distinctive keywords as an
# ERE alternation like (foo|bar|baz).
grep -rinlE '<keywords>' _blocks/ _manifests/ _primitives/ skills/ _bridges/ hooks/ 2>/dev/null
# The 7 paths cover: behavioral blocks, agent manifests, shell primitives,
# Rust primitive crates (source + Cargo.toml), all skills, cross-tool
# bridges, and enforced hooks. grep -r recurses, so _primitives/ catches
# both *.sh and _rust/<crate>/src/*.rs — but _primitives/_rust/ is listed
# explicitly for discoverability when someone reads this file.
grep -rinlE '<keywords>' \
_blocks/ _manifests/ _primitives/ _primitives/_rust/ \
skills/ _bridges/ hooks/ 2>/dev/null
```
## 3b — Personal bundle reuse (conditional, skip on missing)

View file

@ -19,6 +19,25 @@ XLSX / PPTX / CSV), reference the `tomd` primitive
over rewrite". The PreToolUse(Read) hook `tomd-preread.sh` already redirects
Claude to the converted markdown transparently.
### Pipeline / primitive cross-refs (reuse before rewrite)
If the user's task maps onto an existing hub-and-spoke pipeline, recommend
it instead of composing from scratch. Each pipeline is itself discoverable
via Phase 3 grep, but surface it explicitly so the user sees the option:
- VM / server provisioning → `/vm-provision` + `ssh-check` + `firewall-diff`
- Database schema design → `/schema-design` + `kei-migrate` (PG/SQLite/MySQL)
- Metrics + logs observability → `/observability-setup` + `metrics-scrape` + `log-ship`
- Authentication / session / JWT / OAuth → `/auth-setup`
- CI/CD workflow scaffolding → `/ci-scaffold` + `kei-ci-lint`
- REST / GraphQL / gRPC API contract → `/api-design`
- Doc site + changelog automation → `/docs-scaffold` + `kei-changelog`
- Test matrix (unit / integration / e2e / visual) → `/test-matrix`
- Frontend site / UI WYSIWYD loop → `/site-create` + `mock-render` + `visual-diff` + `tokens-sync`
- Multi-agent project bootstrap → `/new-project` + `kei-ledger` (RULE 0.12 fork tracking)
One-line per reference, click-discoverable, no duplication of pipeline logic.
## 5b — What is UNNECESSARY?
For each block listed, justify why it's in. If a block can be removed