gathering-feature

ไป“ๅบ“: autumnsgrove/groveengine
ๅฎ‰่ฃ…้‡: 59
ๆŽ’ๅ: #12715

ๅฎ‰่ฃ…

npx skills add https://github.com/autumnsgrove/groveengine --skill gathering-feature

Gathering Feature ๐ŸŒฒ๐Ÿพ The drum echoes through the forest. One by one, they come. The Bloodhound scouts the territory. The Elephant builds with unstoppable momentum. The Turtle hardens what was built โ€” bone-deep security, not bolted on afterward. The Beaver tests the hardened code. The Raccoon audits for secrets and cleanup. The Deer ensures all can travel the paths. The Fox optimizes for speed. The Owl documents what was learned. When the gathering completes, a feature stands where before there was only forest โ€” secure from birth. When to Summon Building a complete feature from scratch Major functionality spanning frontend, backend, and database Features requiring exploration, implementation, testing, and documentation When you want the full lifecycle handled automatically Grove Tools for This Gathering Use gw and gf throughout. Quick reference for feature work:

Orientation โ€” start every gathering here

gw context

Exploration phase (Bloodhound)

gf --agent search "pattern"

Find relevant code

gf --agent func "functionName"

Find function definitions

gf --agent usage "ComponentName"

Find where things are used

gf --agent impact "module"

Understand change blast radius

Testing phase (Beaver)

gw ci --affected --diagnose

Run CI on affected packages

Shipping phase (after all animals complete)

gw git pr-prep

Preflight check before PR

gw git ship --write -a -m "feat: description"

Commit + push

The Gathering SUMMON โ†’ ORGANIZE โ†’ EXECUTE โ†’ VALIDATE โ†’ COMPLETE โ†“ โ†ฒ โ†ฒ โ†ฒ โ†“ Receive Dispatch Animals Verify Feature Request Animals Work All Ready Animals Mobilized ๐Ÿ• Bloodhound โ€” Scout the codebase, understand patterns ๐Ÿ˜ Elephant โ€” Build the multi-file feature ๐Ÿข Turtle โ€” Harden what was built (secure by design, not bolted on) ๐Ÿฆซ Beaver โ€” Write comprehensive tests (including hardened code) ๐Ÿฆ Raccoon โ€” Security audit and cleanup ๐ŸฆŒ Deer โ€” Accessibility audit ๐ŸฆŠ Fox โ€” Performance optimization ๐Ÿฆ‰ Owl โ€” Document the feature Phase 1: SUMMON The drum sounds. The forest listens... Receive and parse the request: Clarify the Feature: What does this feature do? Which users benefit? What's in scope? What's out? Any existing issues or specs? Confirm: "I'll mobilize a gathering for: [feature description] This will involve: ๐Ÿ• Bloodhound scouting the codebase ๐Ÿ˜ Elephant building across [estimated files] files ๐Ÿข Turtle hardening security by design ๐Ÿฆซ Beaver writing tests ๐Ÿฆ Raccoon auditing for secrets and cleanup ๐ŸฆŒ Deer checking accessibility ๐ŸฆŠ Fox optimizing performance ๐Ÿฆ‰ Owl writing documentation Proceed with the gathering?" Phase 2: ORGANIZE The animals assemble, knowing their roles... Dispatch in sequence: Dispatch Order: Bloodhound โ”€โ”€โ†’ Elephant โ”€โ”€โ†’ Turtle โ”€โ”€โ†’ Beaver โ”€โ”€โ†’ Raccoon โ”€โ”€โ†’ Deer โ”€โ”€โ†’ Fox โ”€โ”€โ†’ Owl โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ Scout Build Harden Test Secrets a11y Speed Docs Patterns Feature Security Coverage Cleanup Check Opt Write Cross-Cutting Standard โ€” Signpost Error Codes: All animals MUST use Signpost error codes (from @autumnsgrove/lattice/errors ). This is not optional: Elephant uses them when building (buildErrorJson in API routes, throwGroveError in page loads) Turtle verifies all errors use Signpost codes during hardening (Phase 2E checklist) Beaver tests that API routes return proper error_code fields Raccoon audits for bare throw error() and console.error without logGroveError() Client-side feedback uses toast from @autumnsgrove/lattice/ui See AgentUsage/error_handling.md for the full reference. Type Safety at Boundaries (Rootwork): Elephant validates form inputs with parseFormData() and KV reads with safeJsonParse() Turtle verifies all trust boundaries use Rootwork utilities (no as casts at boundaries) Beaver tests that validation rejects bad input and catch blocks use isRedirect() / isHttpError() Raccoon audits for unsafe casts and unvalidated JSON parsing Reference: AgentUsage/rootwork_type_safety.md Dependencies: Bloodhound must complete before Elephant (needs context) Elephant must complete before Turtle (hardens what was built) Turtle must complete before Beaver (tests the hardened code) Beaver must complete before Raccoon (tests catch remaining issues) Raccoon, Deer, Fox can run in parallel after Beaver Owl last (documents everything) Why Turtle before Beaver: Security is not a phase you bolt on after testing โ€” it shapes what you build. The Turtle reviews Elephant's work and hardens it: adds input validation schemas, output encoding, parameterized queries, security headers. Then Beaver tests the hardened code, catching both functional and security regressions. This is secure by design. Phase 3: EXECUTE The animals work. The forest transforms... Execute each phase by loading and running each animal's dedicated skill: ๐Ÿ• BLOODHOUND โ€” SCOUT Load skill: bloodhound-scout Execute the full Bloodhound workflow focused on [the feature being built]. Handoff: territory map (files to change, patterns found, integration points, potential obstacles) โ†’ Elephant ๐Ÿ˜ ELEPHANT โ€” BUILD Load skill: elephant-build Execute the full Elephant workflow using the Bloodhound's territory map. Handoff: complete list of built files (components, endpoints, schema changes, wired integrations) โ†’ Turtle for hardening ๐Ÿข TURTLE โ€” HARDEN Load skill: turtle-harden Execute the full Turtle workflow on everything the Elephant built. Handoff: hardened code (input validation, output encoding, parameterized queries, security headers, error handling) โ†’ Beaver for testing ๐Ÿฆซ BEAVER โ€” TEST Load skill: beaver-build Execute the full Beaver workflow on the hardened code, including security regression tests from Turtle's hardening. Handoff: test results and coverage summary โ†’ Raccoon, Deer, Fox (parallel) ๐Ÿฆ RACCOON โ€” AUDIT (parallel with Deer and Fox) Load skill: raccoon-audit Execute the full Raccoon workflow on the completed feature. Handoff: audit findings resolved โ†’ Owl ๐ŸฆŒ DEER โ€” SENSE (parallel with Raccoon and Fox) Load skill: deer-sense Execute the full Deer workflow on all UI produced by the Elephant and Chameleon. Handoff: accessibility findings resolved โ†’ Owl ๐ŸฆŠ FOX โ€” OPTIMIZE (parallel with Raccoon and Deer) Load skill: fox-optimize Execute the full Fox workflow targeting the new feature's bundle, queries, and assets. Handoff: performance findings resolved โ†’ Owl ๐Ÿฆ‰ OWL โ€” ARCHIVE Load skill: owl-archive Execute the full Owl workflow, documenting everything built, hardened, tested, and optimized in this gathering. Phase 4: VALIDATE The work is done. Each animal verifies their contribution... MANDATORY: Run full affected-package verification before the gathering concludes. This is the final quality gate โ€” the moment the entire gathering's work is proven sound:

Step 1: Sync all dependencies

pnpm install

Step 2: Run affected-only CI โ€” lint, check, test, build on ONLY packages the gathering touched

gw ci --affected --fail-fast --diagnose If verification fails: Identify which animal's work caused the failure. Return to that phase, fix the issue, and re-run verification. The gathering does not conclude on broken code. Visual Verification (for features with UI): If the feature has a user-facing interface, capture it before declaring the gathering complete:

Prerequisite: seed the database if not already done

uv run --project tools/glimpse glimpse seed --yes

Verify the feature renders correctly across seasons

Local routing uses ?subdomain= for tenant isolation; --auto starts the dev server

uv run --project tools/glimpse glimpse matrix \ "http://localhost:5173/[feature-page]?subdomain=midnight-bloom" \ --seasons autumn,winter --themes light,dark --logs --auto

Walk through the feature flow visually

uv run --project tools/glimpse glimpse browse \ "http://localhost:5173/[feature-page]?subdomain=midnight-bloom" \ --do "interact with the new feature elements" --screenshot-each --logs --auto Review screenshots for visual correctness, console errors, and theme consistency. Fix and re-capture until the feature looks right. Validation Checklist (after CI passes): CI: gw ci --affected passes clean (lint, check, test, build) Glimpse: Feature visually verified (if UI work) โ€” no console errors Bloodhound: All integration points mapped Elephant: Feature functional end-to-end Turtle: Input validation on all entry points Turtle: Output encoding on all exit points Turtle: Security headers configured Turtle: Defense-in-depth layers verified Beaver: All tests passing, coverage adequate Raccoon: No secrets or dead code found Deer: WCAG AA compliance verified Fox: Performance targets met Owl: Documentation complete All form data parsed with parseFormData() + Zod schemas All KV/JSON reads use safeJsonParse() with schemas Catch blocks use isRedirect()/isHttpError() type guards No as casts at trust boundaries Quality Gates: If CI fails: โ†’ Read diagnostics (--diagnose output) โ†’ Identify the responsible animal phase โ†’ Fix the issue โ†’ Re-run: gw ci --affected --fail-fast --diagnose โ†’ Repeat until clean If any animal finds critical issues: โ†’ Return to that phase โ†’ Fix the issue โ†’ Re-run CI verification โ†’ Continue validation If all gates pass: โ†’ Proceed to COMPLETE Phase 5: COMPLETE The gathering ends. A feature stands complete... Completion Report:

๐ŸŒฒ GATHERING FEATURE COMPLETE

Feature: [Name]

Animals Mobilized ๐Ÿ• Bloodhound โ†’ ๐Ÿ˜ Elephant โ†’ ๐Ÿข Turtle โ†’ ๐Ÿฆซ Beaver โ†’ ๐Ÿฆ Raccoon โ†’ ๐ŸฆŒ Deer โ†’ ๐ŸฆŠ Fox โ†’ ๐Ÿฆ‰ Owl

What Was Built

** Files Changed: ** [count] - ** New Components: ** [list] - ** API Endpoints: ** [list] - ** Database Changes: ** [summary]

Quality Verification

โœ… Tests: [X] passing, [Y]% coverage

โœ… Hardened: Input validation, output encoding, security headers

โœ… Security: No secrets or vulnerabilities found

โœ… Accessibility: WCAG AA compliant

โœ… Performance: [metrics]

โœ… Documentation: Complete

Artifacts Created

Source code (committed)

Tests ([location])

Documentation ([location])

Migration scripts (if applicable)

Time Elapsed [Duration] _ The forest grows. The feature lives. _ Example Gathering User: "/gathering-feature Add a bookmarking system for posts" Gathering execution: ๐ŸŒฒ SUMMON โ€” "Mobilizing for: Bookmarking system. Allow users to save posts for later." ๐ŸŒฒ ORGANIZE โ€” "Dispatch sequence: Bloodhound โ†’ Elephant โ†’ Turtle โ†’ Beaver โ†’ Raccoon + Deer + Fox โ†’ Owl" ๐ŸŒฒ EXECUTE โ€” ๐Ÿ• Scout: "Found post components, user service patterns, database conventions" ๐Ÿ˜ Build: "Created bookmark service, API endpoints, UI components, database schema" ๐Ÿข Harden: "Added Zod validation on bookmark endpoints, parameterized all queries, output encoding on bookmark titles, CSP headers configured" ๐Ÿฆซ Test: "Added 18 tests covering CRUD operations, auth checks, security regressions, edge cases" ๐Ÿฆ Audit: "No secrets, clean dependencies, dead code removed" ๐ŸฆŒ Sense: "Keyboard nav works, screen reader announces, contrast passes" ๐ŸฆŠ Optimize: "Lazy loaded bookmarks, indexed queries, compressed images" ๐Ÿฆ‰ Archive: "Help doc written, API documented, code commented" ๐ŸŒฒ VALIDATE โ€” "All quality gates pass" ๐ŸŒฒ COMPLETE โ€” "Feature deployed, hardened, tested, audited, documented โ€” secure from birth" When the drum sounds, the forest answers. ๐ŸŒฒ

โ† ่ฟ”ๅ›žๆŽ’่กŒๆฆœ