Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
The context detection skill provides systematic patterns for analyzing any project to determine its technology stack(s). It enables the dev plugin to auto-load appropriate framework-specific skills based on what's actually in the project.
detect_bun() {
# Bun backend (NOT frontend with Bun runtime)if [ -f "bun.lockb" ]; then# Check if this is a frontend projectif [ -f "package.json" ]; thenif jq -e '.dependencies.react // .dependencies.vue' package.json >/dev/null 2>&1; then# This is frontend using Bun runtime, not Bun backendreturn 1
fifi# This is a Bun backend projectecho"bunjs"return 0
fireturn 1
}
Quality Checks by Stack
Quality checks are automatically determined based on detected stack(s):
Frontend Quality Checks
react-typescript:-command:"bun run format"tool:"Biome"purpose:"Code formatting"-command:"bun run lint"tool:"Biome"purpose:"Linting"-command:"bun run typecheck"tool:"TypeScript"purpose:"Type checking"-command:"bun test"tool:"Vitest"purpose:"Unit tests"vue-typescript:-command:"bun run format"tool:"Biome"-command:"bun run lint"tool:"Biome"-command:"bun run typecheck"tool:"TypeScript"-command:"bun test"tool:"Vitest"
Backend Quality Checks
golang:-command:"go fmt ./..."purpose:"Format Go code"-command:"go vet ./..."purpose:"Static analysis"-command:"golangci-lint run"purpose:"Comprehensive linting"-command:"go test ./..."purpose:"Run tests"dingo:-command:"dingo fmt"purpose:"Format Dingo source files"-command:"dingo go"purpose:"Transpile Dingo to Go"-command:"go vet ./.dingo/..."purpose:"Static analysis on generated Go"-command:"golangci-lint run ./.dingo/..."purpose:"Comprehensive linting on generated Go"-command:"go test ./.dingo/..."purpose:"Run tests on generated Go"rust:-command:"cargo fmt --check"purpose:"Check formatting"-command:"cargo clippy -- -D warnings"purpose:"Linting"-command:"cargo test"purpose:"Run tests"python:-command:"black --check ."purpose:"Check formatting"-command:"ruff check ."purpose:"Linting"-command:"mypy ."purpose:"Type checking"-command:"pytest"purpose:"Run tests"bunjs:-command:"bun run format"tool:"Biome"-command:"bun run lint"tool:"Biome"-command:"bun run typecheck"tool:"TypeScript"-command:"bun test"tool:"Bun test runner"
Fullstack Quality Checks
For fullstack projects, run checks for BOTH stacks:
fullstack(react+go):frontend:directory:"./frontend"checks:-"cd frontend && bun run format"-"cd frontend && bun run lint"-"cd frontend && bun run typecheck"-"cd frontend && bun test"backend:directory:"."checks:-"go fmt ./..."-"go vet ./..."-"golangci-lint run"-"go test ./..."
Skill Path Generation
Convert detected stacks to skill file paths using ${CLAUDE_PLUGIN_ROOT} placeholder:
CRITICAL: Always use ${CLAUDE_PLUGIN_ROOT} placeholder, NOT hardcoded paths. This placeholder is expanded at runtime to the actual plugin directory.
Error Handling
No Stack Detected
error:"no_stack_detected"trigger:"No config files found AND no recognizable directory structure"recovery:1.Promptuserformanualstackselection2.Offergeneric"unknown"stackwithonlycoreskills3.Saveuserchoiceto${SESSION_PATH}/context.json4.Proceedwithcoreskillsonly
Ambiguous Detection
error:"ambiguous_stack"trigger:"Multiple possible interpretations"recovery:1.Presentallpossibilitiestouser2.Askforconfirmation3.Saveconfirmedstacktocontext
Incomplete Detection
error:"incomplete_detection"trigger:"Found some indicators but missing key files"recovery:1.Reportpartialdetection2.Loadavailableskills3.Warnuseraboutpotentialmissingskills
{"detected_stack":"react-typescript + golang","mode":"fullstack","stacks":["react-typescript","golang"],"skill_paths":["${CLAUDE_PLUGIN_ROOT}/skills/core/universal-patterns/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/core/testing-strategies/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/frontend/react-typescript/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/frontend/state-management/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/frontend/testing-frontend/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/golang/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/api-design/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/database-patterns/SKILL.md"],"quality_checks":{"frontend":["cd frontend && bun run format","..."],"backend":["go fmt ./...","..."]}}
{"detected_stack":"dingo + golang","mode":"backend","stacks":["dingo","golang"],"skill_paths":["${CLAUDE_PLUGIN_ROOT}/skills/core/universal-patterns/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/core/testing-strategies/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/dingo/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/golang/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/api-design/SKILL.md","${CLAUDE_PLUGIN_ROOT}/skills/backend/database-patterns/SKILL.md"],"quality_checks":{"backend":["dingo fmt","dingo go","go vet ./.dingo/...","golangci-lint run ./.dingo/...","go test ./.dingo/..."]}}
Integration with Agents
stack-detector Agent
The stack-detector agent implements this skill:
Reads this skill file for detection patterns
Applies detection algorithm
Generates skill paths using ${CLAUDE_PLUGIN_ROOT}
Writes result to ${SESSION_PATH}/context.json
Returns summary to orchestrator
Orchestrator Commands
Commands read context.json and pass skill paths to implementation agents:
Task: universal-developer
Prompt: |
SESSION_PATH: ${SESSION_PATH}
Read these skills before implementing:
- ${CLAUDE_PLUGIN_ROOT}/skills/frontend/react-typescript/SKILL.md
- ${CLAUDE_PLUGIN_ROOT}/skills/frontend/testing-frontend/SKILL.md
Then implement: Create user profile component
Implementation Agents
Agents use Read tool to load skill files:
1. Read skill file paths from prompt
2. Use Read tool to load each skill
3. Extract relevant patterns
4. Apply patterns during implementation
Version History
v1.0.0 (2026-01-05)
Initial release
Multi-stack detection support
Framework-specific patterns for React, Vue, Go, Rust, Python, Bun