elephant-build
Build multi-file features with unstoppable momentum. Trumpet the vision, gather materials, construct with strength, test thoroughly, and celebrate completion. Use when implementing features that span
Files5
View on GitHubSKILL.md.claude/skills/elephant-build/SKILL.md
GitHubElephant Build ๐
The elephant doesn't hesitate. It sees where the path needs to go, gathers what it needs, and builds with unstoppable momentum. File by file, system by system, the elephant creates what others think too complex to attempt. When a feature spans boundaries โ frontend to backend, API to database, config to deployment โ the elephant carries it through.
When to Activate
- User asks to "implement this feature" or "build this system"
- User says "create" something that needs multiple files
- User calls
/elephant-buildor mentions elephant/building - Features spanning frontend + backend + database
- New API endpoints with client integration
- Database migrations with code changes
- Complex UI flows with state management
- Anything requiring coordinated changes across modules
Pair with: bloodhound-scout for exploration first, beaver-build for testing after
The Build
TRUMPET โ GATHER โ BUILD โ TEST โ CELEBRATE
โ โ โฒ โ โ
Declare Collect Construct Validate Complete
Vision Materials Power Strength Triumph
Phase 1: TRUMPET
Declare what we're building with full scope clarity.
- Write one sentence: what does this feature DO for users?
- Define scope boundaries โ what's IN and explicitly what's OUT
- Create the file inventory: new files, modified files, config changes
- Establish build sequence: schema โ services โ API โ UI โ integration โ tests
Reference: Load references/file-patterns.md for SvelteKit file patterns, component structure, and API route conventions
Output: Clear vision, scope boundaries, file inventory, and build sequence
Phase 2: GATHER
Collect everything needed before building begins.
- Check dependencies โ verify required packages exist, install what's missing
- Research existing patterns with
rg -wn "ServiceName"andrg -n "(function|const|fn) ServiceName" - Examine similar implementations to understand conventions before diverging
- Set up environment variables in
.env.localand.env.example
Output: All materials gathered, dependencies ready, patterns understood
Phase 3: BUILD
Construct the feature file by file, in order.
- Database/Foundation first (schema, types, constants)
- Backend Services second (business logic, data access)
- API Layer third (endpoints, validation, error handling)
- Frontend Components fourth (UI, state management)
- Integration last (wiring it all together)
- One file at a time โ finish it before moving on
- Follow existing patterns โ match the codebase style
- Use Signpost error codes on every error path
- Validate all inputs; add TypeScript types throughout
Reference: Load references/build-checklist.md for the multi-file build checklist, integration wiring steps, and database schema patterns
Reference: Load references/signpost-errors.md for Signpost error codes, which helper to use where, and toast feedback patterns
Output: Complete implementation across all required files
Phase 4: TEST
MANDATORY: Verify the build before committing. The elephant does not ship broken structures.
pnpm install
gw ci --affected --fail-fast --diagnose
If verification fails: read the diagnostics, fix the errors, re-run verification. Repeat until the structure holds.
Once CI passes, verify manually:
- Happy path works end-to-end
- Error states handled gracefully
- Loading states work
- Mobile layout correct
- Keyboard navigation and accessibility pass
Component audit gate (for UI features):
Component check. There is no isolated component harness any more (Showroom was removed in #1654). Capture the page or element where the component renders, then check it against DESIGN.md: colour tokens not hardcoded values, spacing on the 4px grid, type from the scale, a visible focus ring, no skipped heading levels, alt text on images. The pre-commit hooks enforce the mechanical subset (accent colours, Prism icons, barrels). Accent-colored surfaces must use var(--grove-accent-*) tokens (not hardcoded green hex) โ the pre-commit hook enforces this.
# There is no isolated component harness any more (Showroom was removed in #1654).
# Capture the component where it actually renders, then check it by hand.
bun run glimpse capture "http://localhost:5173/[page]" \
-S "[component selector]" --season autumn --theme dark
This is a required gate. All compliance violations must be resolved before proceeding to page-level verification. The elephant does not ship components it hasn't audited.
Visual verification (for UI features):
If the elephant built UI, it looks at the result before declaring the structure sound:
# Prerequisite: seed the database if not already done
./scripts/dev-stack.sh seed blog
# Capture the page to see what was actually built
# Local routing uses ?subdomain= for tenant isolation; starts the dev server
bun run glimpse capture \
"http://localhost:5173/[page]?subdomain=midnight-bloom" \
--season autumn --theme dark --logs
# Interactive flows (clicks, tab order, focus traps) aren't what glimpse does.
# Write a throwaway Playwright script against @playwright/test and screenshot
# at each step; copy the browser setup from tools/glimpse/src/browser.ts.
Review the screenshots. If something doesn't look right, fix it and capture again. The elephant doesn't ship structures it hasn't inspected.
Output: All tests passing, visual and manual verification complete, edge cases handled
Phase 5: CELEBRATE
Ship and document.
git add -A && git commit -m "feat(component): brief description of feature"
Write the completion summary: files created, files modified, config changes, tests added, verification status.
Output: Feature complete, tested, documented, and ready for production
Reference Routing Table
| Phase | Reference | Load When |
|---|---|---|
| TRUMPET | references/file-patterns.md |
Planning new SvelteKit files |
| BUILD | references/build-checklist.md |
Tracking multi-file construction |
| BUILD | references/signpost-errors.md |
Implementing error handling |
Elephant Rules
Momentum. Keep moving forward. Don't get stuck on one file for hours. If blocked, make a TODO and move on. The elephant doesn't stop.
Completeness. Build the whole feature. Half-built features don't help users. If the scope is too big, scope down โ but finish what you start.
Quality. Build it right the first time. Tests, error handling, types โ these aren't extras, they're part of the build.
Anti-Patterns
The elephant does NOT:
- Start building without understanding the scope
- Skip tests because "we'll add them later"
- Leave TODO comments instead of finishing
- Break existing functionality
- Ignore error cases for the happy path
- Copy-paste without understanding
Integration with Other Skills
Before Building: bloodhound-scout โ Explore existing patterns; eagle-architect โ For complex system design; swan-design โ If detailed specs needed
During Building: chameleon-adapt โ For UI polish; beaver-build โ For testing strategy
After Building: raccoon-audit โ Security review; fox-optimize โ If performance issues found; deer-sense โ Accessibility audit
What seems impossible alone becomes inevitable with the elephant's momentum. ๐