mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-19 19:02:29 +08:00
feat: Search Before Building preamble section + CLAUDE.md
Add generateSearchBeforeBuildingSection(ctx) to gen-skill-docs.ts. Every workflow skill now gets a compact router section covering: - Three layers of knowledge (tried-and-true, new-and-popular, first-principles) - Eureka moment format and jq-based JSONL logging - WebSearch fallback clause - ETHOS.md reference via ctx.paths.skillRoot resolver Also adds compact "Search before building" section to CLAUDE.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
13
CLAUDE.md
13
CLAUDE.md
@@ -192,6 +192,19 @@ Completeness is cheap. Don't recommend shortcuts when the complete implementatio
|
||||
is a "lake" (achievable) not an "ocean" (multi-quarter migration). See the
|
||||
Completeness Principle in the skill preamble for the full philosophy.
|
||||
|
||||
## Search before building
|
||||
|
||||
Before designing any solution that involves concurrency, unfamiliar patterns,
|
||||
infrastructure, or anything where the runtime/framework might have a built-in:
|
||||
|
||||
1. Search for "{runtime} {thing} built-in"
|
||||
2. Search for "{thing} best practice {current year}"
|
||||
3. Check official runtime/framework docs
|
||||
|
||||
Three layers of knowledge: tried-and-true (Layer 1), new-and-popular (Layer 2),
|
||||
first-principles (Layer 3). Prize Layer 3 above all. See ETHOS.md for the full
|
||||
builder philosophy.
|
||||
|
||||
## Local plans
|
||||
|
||||
Contributors can store long-range vision docs and design documents in `~/.gstack-dev/plans/`.
|
||||
|
||||
Reference in New Issue
Block a user