all-hands-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.allhands/README.md +75 -0
- package/.allhands/agents/compounder.yaml +15 -0
- package/.allhands/agents/coordinator.yaml +17 -0
- package/.allhands/agents/documentor.yaml +15 -0
- package/.allhands/agents/e2e-test-planner.yaml +17 -0
- package/.allhands/agents/emergent.yaml +22 -0
- package/.allhands/agents/executor.yaml +14 -0
- package/.allhands/agents/ideation.yaml +11 -0
- package/.allhands/agents/initiative-steering.yaml +19 -0
- package/.allhands/agents/judge.yaml +13 -0
- package/.allhands/agents/planner.yaml +19 -0
- package/.allhands/agents/pr-reviewer.yaml +15 -0
- package/.allhands/docs.json +5 -0
- package/.allhands/docs.local.json +26 -0
- package/.allhands/flows/COMPOUNDING.md +203 -0
- package/.allhands/flows/COORDINATION.md +89 -0
- package/.allhands/flows/CORE.md +87 -0
- package/.allhands/flows/DOCUMENTATION.md +218 -0
- package/.allhands/flows/E2E_TEST_PLAN_BUILDING.md +140 -0
- package/.allhands/flows/EMERGENT_PLANNING.md +57 -0
- package/.allhands/flows/IDEATION_SCOPING.md +154 -0
- package/.allhands/flows/INITIATIVE_STEERING.md +110 -0
- package/.allhands/flows/JUDGE_REVIEWING.md +79 -0
- package/.allhands/flows/PROMPT_TASK_EXECUTION.md +68 -0
- package/.allhands/flows/PR_REVIEWING.md +43 -0
- package/.allhands/flows/SPEC_PLANNING.md +216 -0
- package/.allhands/flows/harness/WRITING_HARNESS_FLOWS.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_KNOWLEDGE.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_ORCHESTRATION.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_SKILLS.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_TOOLS.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_VALIDATION_TOOLING.md +27 -0
- package/.allhands/flows/shared/CODEBASE_UNDERSTANDING.md +72 -0
- package/.allhands/flows/shared/CREATE_HARNESS_SPEC.md +48 -0
- package/.allhands/flows/shared/CREATE_SPEC.md +41 -0
- package/.allhands/flows/shared/CREATE_VALIDATION_TOOLING_SPEC.md +70 -0
- package/.allhands/flows/shared/DOCUMENTATION_DISCOVERY.md +123 -0
- package/.allhands/flows/shared/DOCUMENTATION_WRITER.md +101 -0
- package/.allhands/flows/shared/EMERGENT_REFINEMENT_ANALYSIS.md +76 -0
- package/.allhands/flows/shared/EXTERNAL_TECH_GUIDANCE.md +97 -0
- package/.allhands/flows/shared/IDEATION_CODEBASE_GROUNDING.md +49 -0
- package/.allhands/flows/shared/PLAN_DEEPENING.md +152 -0
- package/.allhands/flows/shared/PROMPT_TASKS_CURATION.md +113 -0
- package/.allhands/flows/shared/PROMPT_VALIDATION_REVIEW.MD +99 -0
- package/.allhands/flows/shared/QUICK_PREMORTEM.md +70 -0
- package/.allhands/flows/shared/RESEARCH_GUIDANCE.md +38 -0
- package/.allhands/flows/shared/REVIEW_OPTIONS_BREAKDOWN.md +68 -0
- package/.allhands/flows/shared/SKILL_EXTRACTION.md +84 -0
- package/.allhands/flows/shared/SPEC_FLOW_ANALYSIS.md +119 -0
- package/.allhands/flows/shared/TDD_WORKFLOW.md +109 -0
- package/.allhands/flows/shared/UTILIZE_VALIDATION_TOOLING.md +84 -0
- package/.allhands/flows/shared/WRITING_HARNESS_FLOWS.md +11 -0
- package/.allhands/flows/shared/WRITING_HARNESS_MCP_TOOLS.md +84 -0
- package/.allhands/flows/shared/jury/ARCHITECTURE_REVIEW.md +91 -0
- package/.allhands/flows/shared/jury/BEST_PRACTICES_REVIEW.md +80 -0
- package/.allhands/flows/shared/jury/CLAIM_VERIFICATION_REVIEW.md +101 -0
- package/.allhands/flows/shared/jury/EXPECTATIONS_FIT_REVIEW.md +78 -0
- package/.allhands/flows/shared/jury/MAINTAINABILITY_REVIEW.md +110 -0
- package/.allhands/flows/shared/jury/PROMPTS_EXPECTATIONS_FIT.md +74 -0
- package/.allhands/flows/shared/jury/PROMPTS_FLOW_ANALYSIS.md +92 -0
- package/.allhands/flows/shared/jury/PROMPTS_YAGNI.md +78 -0
- package/.allhands/flows/shared/jury/PROMPT_PREMORTEM.md +125 -0
- package/.allhands/flows/shared/jury/SECURITY_REVIEW.md +86 -0
- package/.allhands/flows/shared/jury/YAGNI_REVIEW.md +82 -0
- package/.allhands/flows/wip/DEBUG_INVESTIGATION.md +162 -0
- package/.allhands/flows/wip/MEMORY_RECALL.md +62 -0
- package/.allhands/harness/ah +131 -0
- package/.allhands/harness/package-lock.json +5292 -0
- package/.allhands/harness/package.json +52 -0
- package/.allhands/harness/src/__tests__/e2e/commands.test.ts +307 -0
- package/.allhands/harness/src/__tests__/e2e/event-loop.test.ts +539 -0
- package/.allhands/harness/src/__tests__/e2e/hooks.test.ts +427 -0
- package/.allhands/harness/src/__tests__/e2e/new-initiative-routing.test.ts +137 -0
- package/.allhands/harness/src/__tests__/e2e/run-e2e.ts +109 -0
- package/.allhands/harness/src/__tests__/e2e/specs-type.test.ts +210 -0
- package/.allhands/harness/src/__tests__/e2e/validation-hooks.test.ts +669 -0
- package/.allhands/harness/src/__tests__/e2e/validation-path-consistency.test.ts +354 -0
- package/.allhands/harness/src/__tests__/e2e/validation.test.ts +528 -0
- package/.allhands/harness/src/__tests__/harness/assertions.ts +318 -0
- package/.allhands/harness/src/__tests__/harness/cli-runner.ts +359 -0
- package/.allhands/harness/src/__tests__/harness/fixture.ts +384 -0
- package/.allhands/harness/src/__tests__/harness/hook-runner.ts +411 -0
- package/.allhands/harness/src/__tests__/harness/index.ts +122 -0
- package/.allhands/harness/src/cli.ts +36 -0
- package/.allhands/harness/src/commands/complexity.ts +177 -0
- package/.allhands/harness/src/commands/context7.ts +202 -0
- package/.allhands/harness/src/commands/docs.ts +557 -0
- package/.allhands/harness/src/commands/hooks.ts +24 -0
- package/.allhands/harness/src/commands/index.ts +51 -0
- package/.allhands/harness/src/commands/knowledge.ts +382 -0
- package/.allhands/harness/src/commands/memories.ts +302 -0
- package/.allhands/harness/src/commands/notify.ts +61 -0
- package/.allhands/harness/src/commands/oracle.ts +158 -0
- package/.allhands/harness/src/commands/perplexity.ts +220 -0
- package/.allhands/harness/src/commands/planning.ts +245 -0
- package/.allhands/harness/src/commands/schema.ts +73 -0
- package/.allhands/harness/src/commands/skills.ts +128 -0
- package/.allhands/harness/src/commands/solutions.ts +353 -0
- package/.allhands/harness/src/commands/spawn.ts +158 -0
- package/.allhands/harness/src/commands/specs.ts +532 -0
- package/.allhands/harness/src/commands/tavily.ts +226 -0
- package/.allhands/harness/src/commands/tools.ts +579 -0
- package/.allhands/harness/src/commands/trace.ts +327 -0
- package/.allhands/harness/src/commands/tui.ts +960 -0
- package/.allhands/harness/src/commands/validate.ts +143 -0
- package/.allhands/harness/src/commands/validation-tools.ts +108 -0
- package/.allhands/harness/src/hooks/context.ts +1442 -0
- package/.allhands/harness/src/hooks/enforcement.ts +170 -0
- package/.allhands/harness/src/hooks/index.ts +54 -0
- package/.allhands/harness/src/hooks/lifecycle.ts +229 -0
- package/.allhands/harness/src/hooks/notification.ts +104 -0
- package/.allhands/harness/src/hooks/observability.ts +551 -0
- package/.allhands/harness/src/hooks/session.ts +88 -0
- package/.allhands/harness/src/hooks/shared.ts +815 -0
- package/.allhands/harness/src/hooks/transcript-parser.ts +208 -0
- package/.allhands/harness/src/hooks/validation.ts +617 -0
- package/.allhands/harness/src/lib/__tests__/ctags.test.ts +244 -0
- package/.allhands/harness/src/lib/__tests__/docs-validation.test.ts +344 -0
- package/.allhands/harness/src/lib/__tests__/mcp-runtime.test.ts +190 -0
- package/.allhands/harness/src/lib/__tests__/schema.test.ts +861 -0
- package/.allhands/harness/src/lib/base-command.ts +198 -0
- package/.allhands/harness/src/lib/cli-daemon.ts +343 -0
- package/.allhands/harness/src/lib/compaction.ts +313 -0
- package/.allhands/harness/src/lib/ctags.ts +497 -0
- package/.allhands/harness/src/lib/docs-validation.ts +907 -0
- package/.allhands/harness/src/lib/event-loop.ts +662 -0
- package/.allhands/harness/src/lib/flows.ts +155 -0
- package/.allhands/harness/src/lib/git.ts +276 -0
- package/.allhands/harness/src/lib/knowledge-worker.ts +72 -0
- package/.allhands/harness/src/lib/knowledge.ts +810 -0
- package/.allhands/harness/src/lib/llm.ts +255 -0
- package/.allhands/harness/src/lib/mcp-client.ts +432 -0
- package/.allhands/harness/src/lib/mcp-daemon.ts +486 -0
- package/.allhands/harness/src/lib/mcp-runtime.ts +418 -0
- package/.allhands/harness/src/lib/notification.ts +115 -0
- package/.allhands/harness/src/lib/opencode/index.ts +70 -0
- package/.allhands/harness/src/lib/opencode/profiles.ts +300 -0
- package/.allhands/harness/src/lib/opencode/prompts/codesearch.md +98 -0
- package/.allhands/harness/src/lib/opencode/prompts/knowledge-aggregator.md +67 -0
- package/.allhands/harness/src/lib/opencode/runner.ts +281 -0
- package/.allhands/harness/src/lib/oracle.ts +926 -0
- package/.allhands/harness/src/lib/planning-utils.ts +150 -0
- package/.allhands/harness/src/lib/planning.ts +605 -0
- package/.allhands/harness/src/lib/pr-review.ts +225 -0
- package/.allhands/harness/src/lib/prompts.ts +522 -0
- package/.allhands/harness/src/lib/schema.ts +418 -0
- package/.allhands/harness/src/lib/schemas/agent-profile.ts +141 -0
- package/.allhands/harness/src/lib/schemas/template-vars.ts +138 -0
- package/.allhands/harness/src/lib/session.ts +164 -0
- package/.allhands/harness/src/lib/specs.ts +348 -0
- package/.allhands/harness/src/lib/tldr.ts +829 -0
- package/.allhands/harness/src/lib/tmux.ts +1051 -0
- package/.allhands/harness/src/lib/trace-store.ts +714 -0
- package/.allhands/harness/src/mcp/__tests__/index.test.ts +46 -0
- package/.allhands/harness/src/mcp/_template.ts +47 -0
- package/.allhands/harness/src/mcp/filesystem.ts +33 -0
- package/.allhands/harness/src/mcp/index.ts +69 -0
- package/.allhands/harness/src/mcp/playwright.ts +34 -0
- package/.allhands/harness/src/mcp/xcodebuild.ts +29 -0
- package/.allhands/harness/src/schemas/docs.schema.json +44 -0
- package/.allhands/harness/src/schemas/settings.schema.json +214 -0
- package/.allhands/harness/src/tui/actions.ts +227 -0
- package/.allhands/harness/src/tui/file-viewer-modal.ts +270 -0
- package/.allhands/harness/src/tui/index.ts +1574 -0
- package/.allhands/harness/src/tui/modal.ts +232 -0
- package/.allhands/harness/src/tui/prompts-pane.ts +186 -0
- package/.allhands/harness/src/tui/status-pane.ts +434 -0
- package/.allhands/harness/tsconfig.json +22 -0
- package/.allhands/harness/vitest.config.ts +13 -0
- package/.allhands/pillars.md +33 -0
- package/.allhands/principles.md +88 -0
- package/.allhands/schemas/alignment.yaml +51 -0
- package/.allhands/schemas/documentation.yaml +10 -0
- package/.allhands/schemas/prompt.yaml +92 -0
- package/.allhands/schemas/skill.yaml +34 -0
- package/.allhands/schemas/solution.yaml +131 -0
- package/.allhands/schemas/spec.yaml +67 -0
- package/.allhands/schemas/validation-suite.yaml +49 -0
- package/.allhands/schemas/workflow.yaml +51 -0
- package/.allhands/settings.json +57 -0
- package/.allhands/skills/claude-code-patterns/SKILL.md +60 -0
- package/.allhands/skills/claude-code-patterns/docs/context-hygiene.md +19 -0
- package/.allhands/skills/harness-maintenance/SKILL.md +449 -0
- package/.allhands/skills/harness-maintenance/references/core-architecture.md +187 -0
- package/.allhands/skills/harness-maintenance/references/harness-skills.md +87 -0
- package/.allhands/skills/harness-maintenance/references/knowledge-compounding.md +78 -0
- package/.allhands/skills/harness-maintenance/references/tools-commands-mcp-hooks.md +115 -0
- package/.allhands/skills/harness-maintenance/references/validation-tooling.md +77 -0
- package/.allhands/skills/harness-maintenance/references/writing-flows.md +84 -0
- package/.allhands/validation/browser-automation.md +109 -0
- package/.allhands/validation/xcode-automation.md +195 -0
- package/.allhands/workflows/documentation.md +86 -0
- package/.allhands/workflows/investigation.md +81 -0
- package/.allhands/workflows/milestone.md +91 -0
- package/.allhands/workflows/optimization.md +85 -0
- package/.allhands/workflows/refactor.md +99 -0
- package/.allhands/workflows/triage.md +81 -0
- package/.claude/README.md +1 -0
- package/.claude/agents/explorer.md +10 -0
- package/.claude/agents/researcher.md +11 -0
- package/.claude/agents/task-runner.md +8 -0
- package/.claude/settings.json +231 -0
- package/.env.ai.example +7 -0
- package/.github/workflows/npm-publish.yml +69 -0
- package/.internal.json +45 -0
- package/.tldr/config.json +11 -0
- package/.tldrignore +90 -0
- package/CLAUDE.md +6 -0
- package/README.md +98 -0
- package/bin/sync-cli.js +7552 -0
- package/concerns.md +7 -0
- package/docs/README.md +41 -0
- package/docs/agents/README.md +24 -0
- package/docs/agents/agent-configuration-system.md +86 -0
- package/docs/agents/execution-agents.md +50 -0
- package/docs/agents/knowledge-agents.md +61 -0
- package/docs/agents/orchestration-agent.md +57 -0
- package/docs/agents/planning-agents.md +84 -0
- package/docs/agents/quality-review-agents.md +67 -0
- package/docs/agents/workflow-agent-orchestration.md +69 -0
- package/docs/flows/README.md +44 -0
- package/docs/flows/compounding.md +126 -0
- package/docs/flows/coordination.md +72 -0
- package/docs/flows/core-harness-integration.md +63 -0
- package/docs/flows/documentation-orchestration.md +98 -0
- package/docs/flows/e2e-test-plan-building.md +83 -0
- package/docs/flows/emergent-refinement.md +104 -0
- package/docs/flows/flow-authoring-and-mcp-tools.md +89 -0
- package/docs/flows/judge-reviewing.md +112 -0
- package/docs/flows/plan-deepening-and-research.md +107 -0
- package/docs/flows/plan-review-jury.md +114 -0
- package/docs/flows/pr-reviewing.md +54 -0
- package/docs/flows/prompt-task-execution.md +119 -0
- package/docs/flows/spec-planning.md +162 -0
- package/docs/flows/type-specific-scoping-flows.md +49 -0
- package/docs/flows/validation-and-skills-integration.md +145 -0
- package/docs/flows/wip/wip-flows.md +102 -0
- package/docs/harness/README.md +23 -0
- package/docs/harness/agent-profiles.md +84 -0
- package/docs/harness/cli/README.md +24 -0
- package/docs/harness/cli/cli-entry-and-command-discovery.md +91 -0
- package/docs/harness/cli/docs-command.md +87 -0
- package/docs/harness/cli/knowledge-command.md +91 -0
- package/docs/harness/cli/minor-cli-commands.md +65 -0
- package/docs/harness/cli/oracle-command.md +113 -0
- package/docs/harness/cli/planning-command.md +95 -0
- package/docs/harness/cli/schema-and-validation-commands.md +154 -0
- package/docs/harness/cli/search-commands.md +97 -0
- package/docs/harness/cli/spawn-command.md +136 -0
- package/docs/harness/cli/specs-command.md +102 -0
- package/docs/harness/cli/tools-command.md +122 -0
- package/docs/harness/cli/trace-command.md +122 -0
- package/docs/harness/cli-daemon.md +92 -0
- package/docs/harness/event-loop.md +184 -0
- package/docs/harness/hooks/README.md +15 -0
- package/docs/harness/hooks/context-hooks.md +96 -0
- package/docs/harness/hooks/lifecycle-and-observability-hooks.md +135 -0
- package/docs/harness/hooks/validation-hooks.md +97 -0
- package/docs/harness/test-harness.md +149 -0
- package/docs/harness/tui.md +176 -0
- package/docs/memories.md +20 -0
- package/docs/solutions/agentic-issues/premature-agent-deletion-tui-action-dependency-20260130.md +49 -0
- package/docs/solutions/agentic-issues/ref-anchor-scope-mismatch-skill-references-20260131.md +55 -0
- package/docs/solutions/agentic-issues/tautological-tests-routing-20260131.md +52 -0
- package/docs/solutions/integration_issue/blocktool-output-format-mismatch-hook-runner-20260130.md +52 -0
- package/docs/solutions/integration_issue/dual-validation-path-divergence-schema-20260130.md +66 -0
- package/docs/solutions/security-issues/unsanitized-domain-path-join-20260131.md +52 -0
- package/docs/solutions/test-failures/event-loop-mock-ordering-checkAgentWindows-20260130.md +63 -0
- package/docs/sync-cli/README.md +19 -0
- package/docs/sync-cli/cli-entrypoint-and-commands.md +39 -0
- package/docs/sync-cli/commands/README.md +11 -0
- package/docs/sync-cli/commands/pull-manifest-command.md +36 -0
- package/docs/sync-cli/commands/push-command.md +84 -0
- package/docs/sync-cli/commands/sync-command.md +71 -0
- package/docs/sync-cli/systems/README.md +14 -0
- package/docs/sync-cli/systems/git-and-github-integration.md +49 -0
- package/docs/sync-cli/systems/interactive-ui.md +43 -0
- package/docs/sync-cli/systems/manifest-and-distribution.md +51 -0
- package/docs/sync-cli/systems/path-resolution.md +42 -0
- package/package.json +46 -0
- package/scripts/install-shim.sh +40 -0
- package/scripts/pre-pack.sh +25 -0
- package/specs/harness-maintenance-skill.spec.md +138 -0
- package/specs/roadmap/git-spec-lifecycle-management.spec.md +113 -0
- package/specs/sync-init-flag.spec.md +117 -0
- package/specs/unified-workflow-orchestration.spec.md +250 -0
- package/specs/validation-tooling-practice.spec.md +98 -0
- package/specs/workflow-domain-configuration.spec.md +265 -0
- package/src/commands/pull-manifest.ts +31 -0
- package/src/commands/push.ts +344 -0
- package/src/commands/sync.ts +289 -0
- package/src/lib/constants.ts +10 -0
- package/src/lib/dotfiles.ts +36 -0
- package/src/lib/fs-utils.ts +18 -0
- package/src/lib/gh.ts +40 -0
- package/src/lib/git.ts +63 -0
- package/src/lib/gitignore.ts +167 -0
- package/src/lib/manifest.ts +121 -0
- package/src/lib/marker-sync.ts +39 -0
- package/src/lib/paths.ts +38 -0
- package/src/lib/target-lines.ts +66 -0
- package/src/lib/ui.ts +78 -0
- package/src/sync-cli.ts +120 -0
- package/target-lines.json +23 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Ground ideation in state-of-the-world codebase reality. Per **Ideation First**, understand both what is implemented AND what is planned for implementation to inform the ideation interview.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Collection of seed information/queries from engineer's initial ideation prompt
|
|
7
|
+
</inputs>
|
|
8
|
+
|
|
9
|
+
<outputs>
|
|
10
|
+
- Relevant codebase files with details, use cases, and engineering knowledge
|
|
11
|
+
- List of milestone dependencies by name
|
|
12
|
+
- Per dependency: key features to ASSUME EXISTS, or open decisions to ASSUME AT LEAST ONE OF EXISTS
|
|
13
|
+
</outputs>
|
|
14
|
+
|
|
15
|
+
<constraints>
|
|
16
|
+
- MUST search roadmap first to identify planned dependencies
|
|
17
|
+
- MUST overlay codebase findings against roadmap to account for future changes
|
|
18
|
+
- MUST use LSP before file reads for referenced symbols
|
|
19
|
+
</constraints>
|
|
20
|
+
|
|
21
|
+
## Roadmap Search
|
|
22
|
+
|
|
23
|
+
Run roadmap queries in parallel first:
|
|
24
|
+
- Run `ah knowledge roadmap search "<query>"` for each input query
|
|
25
|
+
- Identify planned work that ideation will build on top of
|
|
26
|
+
- These become milestone dependencies
|
|
27
|
+
|
|
28
|
+
## Codebase Search
|
|
29
|
+
|
|
30
|
+
For existing implementation understanding:
|
|
31
|
+
- Run `ah knowledge docs search "<query>"` for each input query (parallel)
|
|
32
|
+
- Extract patterns, solutions, and engineer reasoning
|
|
33
|
+
- Use LSP to navigate referenced symbols FIRST
|
|
34
|
+
- Only read files if LSP not possible
|
|
35
|
+
|
|
36
|
+
## Synthesis
|
|
37
|
+
|
|
38
|
+
Combine roadmap and codebase findings:
|
|
39
|
+
- Account for codebase patterns that may change when dependencies are implemented
|
|
40
|
+
- Identify which current patterns will remain vs. be superseded
|
|
41
|
+
|
|
42
|
+
## Output Formatting
|
|
43
|
+
|
|
44
|
+
Provide:
|
|
45
|
+
- Codebase files with most relevant details for ideation interview
|
|
46
|
+
- Milestone dependencies by name
|
|
47
|
+
- Per dependency:
|
|
48
|
+
- Features to ASSUME EXISTS (definite implementations)
|
|
49
|
+
- Features to ASSUME AT LEAST ONE OF EXISTS (open approach decisions)
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Enhance planning artifacts with parallel research and skill application. Per **Knowledge Compounding**, surface relevant learnings and best practices before implementation begins.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Alignment doc path
|
|
7
|
+
- Prompts folder path
|
|
8
|
+
- Spec doc path
|
|
9
|
+
</inputs>
|
|
10
|
+
|
|
11
|
+
<outputs>
|
|
12
|
+
- Enhanced prompts with research insights sections
|
|
13
|
+
- Updated alignment doc with discovered considerations
|
|
14
|
+
- Conflict report (if research conflicts with current plan)
|
|
15
|
+
</outputs>
|
|
16
|
+
|
|
17
|
+
<constraints>
|
|
18
|
+
- MUST preserve original prompt content (only add research insights)
|
|
19
|
+
- MUST use existing schemas from `.allhands/schemas/`
|
|
20
|
+
- NEVER modify prompt task scope
|
|
21
|
+
- NEVER add tasks or change acceptance criteria
|
|
22
|
+
</constraints>
|
|
23
|
+
|
|
24
|
+
## Context Analysis
|
|
25
|
+
|
|
26
|
+
Read planning artifacts to understand enhancement targets:
|
|
27
|
+
- Read all prompts in the prompts folder
|
|
28
|
+
- Read alignment doc for current decisions
|
|
29
|
+
- Read spec doc for original intent
|
|
30
|
+
- Identify technology domains, components, and patterns mentioned
|
|
31
|
+
|
|
32
|
+
## Research Spawning
|
|
33
|
+
|
|
34
|
+
Spawn parallel subtasks for each research area:
|
|
35
|
+
|
|
36
|
+
### Skill Application
|
|
37
|
+
|
|
38
|
+
Per **Frontier Models are Capable**, match skills to plan content:
|
|
39
|
+
- Run `ah skills list` to discover available skills
|
|
40
|
+
- For each domain in the plan, spawn subtask:
|
|
41
|
+
- Read matched skill's SKILL.md
|
|
42
|
+
- Apply skill patterns to relevant prompts
|
|
43
|
+
- Return best practices and gotchas
|
|
44
|
+
|
|
45
|
+
### Solutions Search
|
|
46
|
+
|
|
47
|
+
Per **Knowledge Compounding**, check for relevant past solutions:
|
|
48
|
+
- Run `ah solutions search "<domain keywords>"` for each technology area
|
|
49
|
+
- Run `ah memories search "<domain keywords>"` for relevant learnings and engineer preferences
|
|
50
|
+
- For high-scoring matches, extract:
|
|
51
|
+
- Key insights that apply
|
|
52
|
+
- Gotchas to avoid
|
|
53
|
+
- Patterns to follow
|
|
54
|
+
|
|
55
|
+
### Codebase Patterns
|
|
56
|
+
|
|
57
|
+
- Spawn subtasks to read `.allhands/flows/shared/CODEBASE_UNDERSTANDING.md`
|
|
58
|
+
- Target: existing implementations of similar patterns
|
|
59
|
+
- Return: file references and conventions discovered
|
|
60
|
+
|
|
61
|
+
### External Research (if needed)
|
|
62
|
+
|
|
63
|
+
For novel technologies or high-risk domains:
|
|
64
|
+
- Spawn subtasks to read `.allhands/flows/shared/RESEARCH_GUIDANCE.md`
|
|
65
|
+
- Target: best practices, edge cases, performance considerations
|
|
66
|
+
|
|
67
|
+
## Synthesis
|
|
68
|
+
|
|
69
|
+
After all research completes:
|
|
70
|
+
|
|
71
|
+
### Group by Prompt
|
|
72
|
+
|
|
73
|
+
For each prompt, collect:
|
|
74
|
+
- Relevant skill patterns
|
|
75
|
+
- Applicable solutions from docs/solutions/
|
|
76
|
+
- Codebase pattern references
|
|
77
|
+
- External research findings
|
|
78
|
+
|
|
79
|
+
### Conflict Detection
|
|
80
|
+
|
|
81
|
+
Identify conflicts between:
|
|
82
|
+
- Research findings and current plan
|
|
83
|
+
- Different research sources
|
|
84
|
+
- Skills and codebase patterns
|
|
85
|
+
|
|
86
|
+
Flag conflicts for engineer review - do not resolve automatically.
|
|
87
|
+
|
|
88
|
+
## Enhancement
|
|
89
|
+
|
|
90
|
+
For each prompt with research findings:
|
|
91
|
+
|
|
92
|
+
### Add Research Insights Section
|
|
93
|
+
|
|
94
|
+
Append to prompt body (after existing content):
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Research Insights
|
|
100
|
+
|
|
101
|
+
**Skills Applied**: [List of skills that informed this section]
|
|
102
|
+
|
|
103
|
+
**Best Practices**:
|
|
104
|
+
- [Concrete recommendation from research]
|
|
105
|
+
- [Pattern to follow]
|
|
106
|
+
|
|
107
|
+
**Gotchas to Avoid**:
|
|
108
|
+
- [Past solution reference: docs/solutions/...] - [Key insight]
|
|
109
|
+
- [Potential pitfall from research]
|
|
110
|
+
|
|
111
|
+
**Codebase References**:
|
|
112
|
+
- [path/to/file.ts:42] - [Pattern to follow]
|
|
113
|
+
|
|
114
|
+
**External References**:
|
|
115
|
+
- [URL] - [Key takeaway]
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Update Alignment Doc
|
|
119
|
+
|
|
120
|
+
If research revealed considerations not in current plan:
|
|
121
|
+
- Add "Research Insights" section to alignment doc
|
|
122
|
+
- Document discovered risks, patterns, or decisions needed
|
|
123
|
+
- Flag items requiring engineer input
|
|
124
|
+
|
|
125
|
+
## Validation
|
|
126
|
+
|
|
127
|
+
After enhancement:
|
|
128
|
+
- Verify original prompt content unchanged
|
|
129
|
+
- Verify only additive changes made
|
|
130
|
+
- Check for any unresolved conflicts
|
|
131
|
+
|
|
132
|
+
## Completion
|
|
133
|
+
|
|
134
|
+
Present summary to engineer:
|
|
135
|
+
```
|
|
136
|
+
## Plan Deepening Summary
|
|
137
|
+
|
|
138
|
+
### Prompts Enhanced
|
|
139
|
+
- [Prompt X]: [Skills/solutions applied]
|
|
140
|
+
- [Prompt Y]: [Skills/solutions applied]
|
|
141
|
+
|
|
142
|
+
### Key Discoveries
|
|
143
|
+
- [Important finding that may affect approach]
|
|
144
|
+
|
|
145
|
+
### Conflicts Identified
|
|
146
|
+
- [Conflict description] -> [Options for resolution]
|
|
147
|
+
|
|
148
|
+
### Alignment Doc Updates
|
|
149
|
+
- [Sections added or updated]
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Per **Quality Engineering**, engineer decides how to proceed with conflicts.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Create, edit, and maintain Prompt Task files - the atomic unit of work. Per **Prompt Files as Units of Work**, prompts ARE the tasks, distributed for parallel execution with strict validation gates.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Path to the prompts directory
|
|
7
|
+
- Planning session number
|
|
8
|
+
</inputs>
|
|
9
|
+
|
|
10
|
+
<outputs>
|
|
11
|
+
- Prompt file(s) at specified path following naming convention
|
|
12
|
+
</outputs>
|
|
13
|
+
|
|
14
|
+
<constraints>
|
|
15
|
+
- MUST run `ah schema prompt` for frontmatter and body structure
|
|
16
|
+
- MUST include `skills` and `validation_suites` in frontmatter
|
|
17
|
+
- MUST include `patches_prompts: [X, Y]` for user-patch prompts
|
|
18
|
+
- NEVER modify `status: done` prompts unless explicitly requested
|
|
19
|
+
- NEVER create prompt summary entries in the alignment doc's `## Prompt Summaries` section. Per **Prompt Files as Units of Work**, those entries are written exclusively by executor agents after prompt completion — they document decisions made and work done, which don't exist yet at creation time.
|
|
20
|
+
</constraints>
|
|
21
|
+
|
|
22
|
+
## Schema Reference
|
|
23
|
+
|
|
24
|
+
- Run `ah schema prompt` for frontmatter and body structure
|
|
25
|
+
- Run `ah schema prompt body` for success/failure summary formats
|
|
26
|
+
|
|
27
|
+
## Core Principles
|
|
28
|
+
|
|
29
|
+
### Never Modify Completed Prompts
|
|
30
|
+
- `status: done` prompts are immutable unless explicitly requested
|
|
31
|
+
- Create new prompts to extend or fix completed work
|
|
32
|
+
|
|
33
|
+
### Write Implementation-Ready Prompts
|
|
34
|
+
- Include specific file paths, function names, and code references
|
|
35
|
+
- Provide enough detail that implementors don't waste context searching
|
|
36
|
+
- Reference relevant existing patterns in the codebase
|
|
37
|
+
|
|
38
|
+
### Design Intuitive Dependencies
|
|
39
|
+
- Map `dependencies: [X, Y]` so prompts execute in correct succession
|
|
40
|
+
- Minimize blocking chains - parallelize where possible
|
|
41
|
+
- Each prompt should be completable once dependencies are met
|
|
42
|
+
|
|
43
|
+
## Skills Integration
|
|
44
|
+
|
|
45
|
+
Skills embed domain expertise into prompts - "how to do it right."
|
|
46
|
+
|
|
47
|
+
Read `.allhands/flows/shared/SKILL_EXTRACTION.md` and:
|
|
48
|
+
- Run `ah skills list` to discover available skills
|
|
49
|
+
- Match skills to the prompt's domain (by globs and description)
|
|
50
|
+
- Read matched skill files for patterns, best practices, guidelines
|
|
51
|
+
- Extract relevant knowledge and embed in Tasks section
|
|
52
|
+
- Add matched skill file paths to `skills` frontmatter
|
|
53
|
+
|
|
54
|
+
Skills provide: code patterns, library preferences, common pitfalls, domain-specific best practices.
|
|
55
|
+
|
|
56
|
+
If no skill matches: proceed without skill-derived guidance, note the gap.
|
|
57
|
+
|
|
58
|
+
## Validation Tooling Integration
|
|
59
|
+
|
|
60
|
+
Per **Agentic Validation Tooling**, each prompt needs explicit validation.
|
|
61
|
+
|
|
62
|
+
Read `.allhands/flows/shared/UTILIZE_VALIDATION_TOOLING.md` and:
|
|
63
|
+
- Run `ah validation-tools list` to discover available suites
|
|
64
|
+
- Match suites to the prompt's domain (by globs and description)
|
|
65
|
+
- Read matched suite files for specific commands and success criteria
|
|
66
|
+
- Add matched suite file paths to `validation_suites` frontmatter
|
|
67
|
+
|
|
68
|
+
Acceptance criteria must be:
|
|
69
|
+
- Specific enough for programmatic validation
|
|
70
|
+
- Written with the same rigor a test engineer would apply
|
|
71
|
+
- Achievable without human intervention until final E2E
|
|
72
|
+
- Derived from validation commands in referenced suites
|
|
73
|
+
|
|
74
|
+
If no suite matches: note gap, flag for CREATE_VALIDATION_TOOLING follow-up, use basic validation.
|
|
75
|
+
|
|
76
|
+
**Testing is validation, not prompts**:
|
|
77
|
+
- Do NOT create standalone "E2E testing" or "write tests" prompts
|
|
78
|
+
- Tests are created as part of feature prompts OR via validation suite setup
|
|
79
|
+
- Validation suites (Playwright, pytest, etc.) are attached to prompts via `validation_suites` field
|
|
80
|
+
- If no validation suite exists, prompt should create test infrastructure as part of feature work
|
|
81
|
+
|
|
82
|
+
## Context Budget (Critical)
|
|
83
|
+
|
|
84
|
+
Per **Context is Precious**, agents degrade with context. Hard limits:
|
|
85
|
+
|
|
86
|
+
| Context Usage | Quality | Claude's State |
|
|
87
|
+
|---------------|---------|----------------|
|
|
88
|
+
| 0-30% | PEAK | Thorough, comprehensive |
|
|
89
|
+
| 30-50% | GOOD | Solid work |
|
|
90
|
+
| 50-70% | DEGRADING | Efficiency mode |
|
|
91
|
+
| 70%+ | POOR | Rushed, minimal |
|
|
92
|
+
|
|
93
|
+
**Scope Limits:**
|
|
94
|
+
- **Target ~50% context max**
|
|
95
|
+
- 0-3 files modified = small (~15%)
|
|
96
|
+
- 4-6 files modified = medium (~25%)
|
|
97
|
+
- 7+ files modified = large - SPLIT the prompt
|
|
98
|
+
|
|
99
|
+
## Task Breakdown Guidelines
|
|
100
|
+
|
|
101
|
+
- 2-6 tasks per prompt (validatable as a unit)
|
|
102
|
+
- Each prompt ends with meaningful validation checkpoint
|
|
103
|
+
- Order tasks to derisk critical paths first
|
|
104
|
+
- Compound refinement: each prompt builds on prior validated work
|
|
105
|
+
- **Plan wiring, not just artifacts** - ensure tasks connect components (API calls, imports, state flow), not just create files in isolation
|
|
106
|
+
|
|
107
|
+
## Writing the Prompt File
|
|
108
|
+
|
|
109
|
+
- Write to the prompts directory path
|
|
110
|
+
- Naming convention: `<two_digit_number>-<prompt_type>-<title>["-DONE"].prompt.md`
|
|
111
|
+
- Include `skills: [.allhands/skills/skill-1/SKILL.md, ...]` in frontmatter
|
|
112
|
+
- Include `validation_suites: [.allhands/validation/suite-1.md, ...]` in frontmatter
|
|
113
|
+
- For user-patch prompts, include `patches_prompts: [X, Y]`
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Review prompt implementation for validation pass/fail. Per **Agentic Validation Tooling**, be critical of validation quality while balancing speed to production.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Prompt file path
|
|
7
|
+
- Validation tooling results and checks
|
|
8
|
+
- Validation methods used (include validation-suite file paths)
|
|
9
|
+
- Work done to account for any previous validation failures
|
|
10
|
+
</inputs>
|
|
11
|
+
|
|
12
|
+
<outputs>
|
|
13
|
+
- Verdict: PASS | FAIL
|
|
14
|
+
- What it will take to pass (if fail): implementation issues, validation tooling adjustments, or additional convincing results needed
|
|
15
|
+
</outputs>
|
|
16
|
+
|
|
17
|
+
<constraints>
|
|
18
|
+
- MUST check git diff of uncommitted work
|
|
19
|
+
- MUST be critical of validation quality, not just results
|
|
20
|
+
- MUST consider prior failure attempts when evaluating
|
|
21
|
+
- NEVER fail for being overly strict when iteration shows genuine progress
|
|
22
|
+
</constraints>
|
|
23
|
+
|
|
24
|
+
## Review Process
|
|
25
|
+
|
|
26
|
+
### Diff Analysis
|
|
27
|
+
- Run `git diff` to review uncommitted work
|
|
28
|
+
- Look for immediately noticeable issues
|
|
29
|
+
|
|
30
|
+
### Goal-Backward Verification
|
|
31
|
+
|
|
32
|
+
Per **Quality Engineering**, task completion ≠ goal achievement. Verify work is substantive:
|
|
33
|
+
|
|
34
|
+
| Level | Check |
|
|
35
|
+
|-------|-------|
|
|
36
|
+
| Existence | Files were created/modified |
|
|
37
|
+
| Substantive | Implementation is real, not placeholder |
|
|
38
|
+
| Wired | Components are connected (API calls, imports, state rendering) |
|
|
39
|
+
|
|
40
|
+
### Stub Detection
|
|
41
|
+
|
|
42
|
+
Scan for placeholder patterns that indicate incomplete work:
|
|
43
|
+
|
|
44
|
+
| Pattern | Red Flags |
|
|
45
|
+
|---------|-----------|
|
|
46
|
+
| Placeholder content | `TODO`, `FIXME`, `placeholder`, `coming soon`, `will be here` |
|
|
47
|
+
| Empty implementations | `return null`, `return {}`, `return []`, `=> {}` |
|
|
48
|
+
| Stub handlers | `onClick={() => {}}`, `onSubmit={(e) => e.preventDefault()}` only |
|
|
49
|
+
| Orphaned code | Files created but not imported/used anywhere |
|
|
50
|
+
| Unconnected APIs | API calls exist but responses not used |
|
|
51
|
+
|
|
52
|
+
### Validation Quality Critique
|
|
53
|
+
|
|
54
|
+
Per **Knowledge Compounding**, bad validation methods should not persist:
|
|
55
|
+
|
|
56
|
+
| Check | Red Flag |
|
|
57
|
+
|-------|----------|
|
|
58
|
+
| Mock tests | Do they test real implementation or just pass? |
|
|
59
|
+
| Test scope | Is validation curated to this prompt to LOOK like it passes? |
|
|
60
|
+
| Product efficacy | Does validation prove actual product stability? |
|
|
61
|
+
| Redundancy | Are tests duplicative without adding confidence? |
|
|
62
|
+
|
|
63
|
+
### Scenario Exploration
|
|
64
|
+
|
|
65
|
+
Consider edge cases and failure scenarios:
|
|
66
|
+
|
|
67
|
+
| Scenario | Check |
|
|
68
|
+
|----------|-------|
|
|
69
|
+
| Happy Path | Normal operation with valid inputs |
|
|
70
|
+
| Invalid Inputs | Null, empty, malformed data handling |
|
|
71
|
+
| Boundary Conditions | Min/max values, empty collections |
|
|
72
|
+
| Concurrent Access | Race conditions, deadlocks |
|
|
73
|
+
| Network Issues | Timeouts, partial failures |
|
|
74
|
+
| Error Recovery | Graceful degradation, retry logic |
|
|
75
|
+
|
|
76
|
+
Focus on scenarios that could cause data corruption, security issues, or user-facing failures.
|
|
77
|
+
|
|
78
|
+
### Prior Failure Context
|
|
79
|
+
|
|
80
|
+
If previous failures are documented:
|
|
81
|
+
- Consider work done to address them
|
|
82
|
+
- Recognize genuine progress vs. superficial fixes
|
|
83
|
+
- Being overly strict wastes cycles - balance rigor with velocity
|
|
84
|
+
|
|
85
|
+
## Verdict
|
|
86
|
+
|
|
87
|
+
### PASS Criteria
|
|
88
|
+
- Implementation meets acceptance criteria
|
|
89
|
+
- Validation proves product efficacy (not just test passing)
|
|
90
|
+
- No immediately noticeable issues in diff
|
|
91
|
+
|
|
92
|
+
### FAIL Response
|
|
93
|
+
Provide actionable feedback:
|
|
94
|
+
- Implementation issues needing resolution
|
|
95
|
+
- Validation tooling adjustments needed
|
|
96
|
+
- Additional convincing results required
|
|
97
|
+
- Strong implementation examples where helpful
|
|
98
|
+
|
|
99
|
+
Per **Knowledge Compounding**, feedback should compound - prevent misuse of validation and bad implementation patterns in future prompts.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Fast risk check for single prompts before execution. Per **Quality Engineering**, even lightweight tasks benefit from brief failure mode consideration.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Single prompt file path
|
|
7
|
+
- Optional: alignment doc path for context
|
|
8
|
+
</inputs>
|
|
9
|
+
|
|
10
|
+
<outputs>
|
|
11
|
+
- Brief risk assessment (2-3 minutes max)
|
|
12
|
+
- Go/adjust/block recommendation
|
|
13
|
+
</outputs>
|
|
14
|
+
|
|
15
|
+
<constraints>
|
|
16
|
+
- MUST complete in under 3 minutes
|
|
17
|
+
- MUST verify findings before flagging
|
|
18
|
+
- NEVER block without high-severity verified Tiger
|
|
19
|
+
</constraints>
|
|
20
|
+
|
|
21
|
+
## Quick Questions
|
|
22
|
+
|
|
23
|
+
Answer these five questions for the prompt:
|
|
24
|
+
|
|
25
|
+
| # | Question | If Yes → |
|
|
26
|
+
|---|----------|----------|
|
|
27
|
+
| 1 | What's the single biggest thing that could go wrong? | Flag as Tiger if unmitigated |
|
|
28
|
+
| 2 | Any external dependencies that could fail? | Flag as Tiger if no fallback |
|
|
29
|
+
| 3 | Is rollback possible if this breaks? | Flag as Elephant if unclear |
|
|
30
|
+
| 4 | Edge cases not covered in acceptance criteria? | Note for prompt amendment |
|
|
31
|
+
| 5 | Unclear requirements that could cause rework? | Flag as Tiger if blocking |
|
|
32
|
+
|
|
33
|
+
## Output Format
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
quick_premortem:
|
|
37
|
+
prompt: "<number or name>"
|
|
38
|
+
duration: "<minutes>"
|
|
39
|
+
|
|
40
|
+
recommendation: go | adjust | block
|
|
41
|
+
|
|
42
|
+
tigers: # Only verified, high-impact
|
|
43
|
+
- risk: "<brief description>"
|
|
44
|
+
action: "<specific fix>"
|
|
45
|
+
|
|
46
|
+
notes: # Lower severity, awareness only
|
|
47
|
+
- "<observation>"
|
|
48
|
+
|
|
49
|
+
adjustment_needed: # If recommendation is "adjust"
|
|
50
|
+
- "<what to add/change in prompt>"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## When to Use
|
|
54
|
+
|
|
55
|
+
| Context | Use Quick Premortem |
|
|
56
|
+
|---------|---------------------|
|
|
57
|
+
| Emergent refinement prompts | Before execution |
|
|
58
|
+
| Judge-produced review-fix prompts | Before execution |
|
|
59
|
+
| PR-review produced prompts | Before execution |
|
|
60
|
+
| Single deterministic fix | Optional |
|
|
61
|
+
|
|
62
|
+
For full milestone prompt sets, use `.allhands/flows/shared/jury/PROMPT_PREMORTEM.md` instead.
|
|
63
|
+
|
|
64
|
+
## Recommendation Thresholds
|
|
65
|
+
|
|
66
|
+
| Recommendation | Criteria |
|
|
67
|
+
|----------------|----------|
|
|
68
|
+
| **Go** | No Tigers, or Tigers have clear mitigations already |
|
|
69
|
+
| **Adjust** | Tigers exist but fixable with prompt amendment |
|
|
70
|
+
| **Block** | High-severity Tiger requiring engineer decision |
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Pick the right research tool and depth for the need. Per **Context is Precious**, use targeted tools to gather external knowledge efficiently.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<constraints>
|
|
6
|
+
- MUST determine discovery level before researching
|
|
7
|
+
- MUST use `gh` CLI for GitHub content, not research tools
|
|
8
|
+
- NEVER use WebSearch or WebFetch tools since the tooling here is much better
|
|
9
|
+
- If any tool fails, you MUST try another tool from the decision tree.
|
|
10
|
+
</constraints>
|
|
11
|
+
|
|
12
|
+
## Decision Tree
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
├─ Broad synthesis, deep research with citations? → `ah perplexity research "<query>"`
|
|
16
|
+
├─ Same + X/Twitter community insights? → `ah perplexity research "<query>" --grok-challenge`
|
|
17
|
+
├─ Find sources, discover URLs? → `ah tavily search "<query>"`
|
|
18
|
+
├─ Full content from known URL? → `ah tavily extract "<url1>" "<url2>"`
|
|
19
|
+
├─ Challenge findings with social signals? → `ah perplexity research "<query>" --challenge`
|
|
20
|
+
└─ GitHub content? → Use `gh` CLI directly
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## When to Use What
|
|
24
|
+
|
|
25
|
+
| Need | Tool | Why |
|
|
26
|
+
|------|------|-----|
|
|
27
|
+
| "Best ways to solve X?" | perplexity | Synthesizes multiple sources |
|
|
28
|
+
| "Best ways to solve X for agentic developers?" | perplexity --grok-challenge | Synthesis + X/Twitter community challenge |
|
|
29
|
+
| "Find articles about X" | tavily search | Returns URLs to explore |
|
|
30
|
+
| "Get content from this doc" | tavily extract | Full page content |
|
|
31
|
+
| "Challenge research with developer sentiment" | perplexity --challenge | Validates findings via X/Twitter |
|
|
32
|
+
|
|
33
|
+
## Combination Strategy
|
|
34
|
+
|
|
35
|
+
When unsure which tool is best:
|
|
36
|
+
- Use multiple tools in parallel
|
|
37
|
+
- Compare result quality for your use case
|
|
38
|
+
- Remember which gives best results for similar future queries
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Organize unstructured review feedback into ranked, actionable options for engineer decision. Per **Knowledge Compounding**, both accepted and declined items must be documented.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Unorganized list of review options from multiple sources/perspectives
|
|
7
|
+
- Alignment doc path (if unfamiliar with contents)
|
|
8
|
+
- Prompt path file for planned/completed implementation summaries
|
|
9
|
+
</inputs>
|
|
10
|
+
|
|
11
|
+
<outputs>
|
|
12
|
+
- Engineer's choices (accept/decline per item)
|
|
13
|
+
- Updated alignment doc with declined items documented
|
|
14
|
+
</outputs>
|
|
15
|
+
|
|
16
|
+
<constraints>
|
|
17
|
+
- MUST present options ranked P1, P2, P3 (most to least important)
|
|
18
|
+
- MUST allow engineer to explain why they decline items
|
|
19
|
+
- MUST document declined items in alignment doc
|
|
20
|
+
</constraints>
|
|
21
|
+
|
|
22
|
+
## Analysis
|
|
23
|
+
|
|
24
|
+
For each review item:
|
|
25
|
+
- Understand relationship to other items
|
|
26
|
+
- Combine duplicates and elevate repeated concerns (proves urgency)
|
|
27
|
+
- Consider importance in context of spec doc goals and engineer desires
|
|
28
|
+
|
|
29
|
+
### Premortem Integration
|
|
30
|
+
|
|
31
|
+
When premortem findings are present in inputs:
|
|
32
|
+
|
|
33
|
+
| Premortem Category | Maps To | Handling |
|
|
34
|
+
|--------------------|---------|----------|
|
|
35
|
+
| **Tigers** (high severity) | P1 | Require explicit accept or fix decision |
|
|
36
|
+
| **Tigers** (medium severity) | P2 | Recommend addressing, allow skip |
|
|
37
|
+
| **Elephants** | Discussion Points | Surface to engineer, document response |
|
|
38
|
+
| **Paper Tigers** | Acknowledged | Note as acceptable risk in alignment doc |
|
|
39
|
+
| **Checklist Gaps** | P2 or P3 | Prompt amendments to close gaps |
|
|
40
|
+
|
|
41
|
+
Tigers with `mitigation_checked` field prove thorough analysis - weight these higher.
|
|
42
|
+
|
|
43
|
+
## Priority Ranking
|
|
44
|
+
|
|
45
|
+
| Priority | Criteria |
|
|
46
|
+
|----------|----------|
|
|
47
|
+
| P1 | Blocking issues, security concerns, core functionality |
|
|
48
|
+
| P2 | Important improvements, consistency issues, best practices |
|
|
49
|
+
| P3 | Nice-to-haves, polish, minor optimizations |
|
|
50
|
+
|
|
51
|
+
## Engineer Presentation
|
|
52
|
+
|
|
53
|
+
Present ranked options:
|
|
54
|
+
- Order from most important (P1) to least important (P3)
|
|
55
|
+
- For each: describe the issue, explain importance, suggest implementation
|
|
56
|
+
- Ask engineer which to accept and which to decline
|
|
57
|
+
- Always allow engineer to explain their reasoning
|
|
58
|
+
|
|
59
|
+
## Decision Documentation
|
|
60
|
+
|
|
61
|
+
Run `ah schema alignment` to identify where to track declined items.
|
|
62
|
+
|
|
63
|
+
Document in alignment doc:
|
|
64
|
+
- Which items were accepted (will become prompts)
|
|
65
|
+
- Which items were declined AND engineer's reasoning
|
|
66
|
+
- Accepted risks from premortem (Tigers acknowledged but not mitigated)
|
|
67
|
+
- Paper Tigers noted as acceptable risk decisions
|
|
68
|
+
- Per **Knowledge Compounding**, this prevents future re-suggestion of rejected approaches
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<goal>
|
|
2
|
+
Find and extract domain expertise from skills to embed in prompt instructions. Per **Knowledge Compounding**, skills are "how to do it right" - expertise that compounds across prompts.
|
|
3
|
+
</goal>
|
|
4
|
+
|
|
5
|
+
<inputs>
|
|
6
|
+
- Files/domains involved in the implementation task
|
|
7
|
+
- Nature of the changes (UI, native code, deployment, etc.)
|
|
8
|
+
</inputs>
|
|
9
|
+
|
|
10
|
+
<outputs>
|
|
11
|
+
- Extracted knowledge distilled for prompt embedding
|
|
12
|
+
- Sources consulted (skill file paths)
|
|
13
|
+
</outputs>
|
|
14
|
+
|
|
15
|
+
<constraints>
|
|
16
|
+
- MUST run `ah skills list` to discover available skills
|
|
17
|
+
- MUST match skills via both glob patterns AND description inference
|
|
18
|
+
- MUST extract task-relevant knowledge, not copy entire skill files
|
|
19
|
+
- MUST list sources consulted in output
|
|
20
|
+
</constraints>
|
|
21
|
+
|
|
22
|
+
## Step 1: Discover Available Skills
|
|
23
|
+
|
|
24
|
+
- Run `ah skills list`
|
|
25
|
+
- Returns JSON with: `name`, `description`, `globs`, `file` path
|
|
26
|
+
|
|
27
|
+
## Step 2: Identify Relevant Skills
|
|
28
|
+
|
|
29
|
+
Match skills using two approaches:
|
|
30
|
+
|
|
31
|
+
**Glob pattern matching** (programmatic):
|
|
32
|
+
- Compare files you're touching against each skill's `globs`
|
|
33
|
+
- Skills with matching patterns are likely relevant
|
|
34
|
+
|
|
35
|
+
**Description inference** (semantic):
|
|
36
|
+
- Read skill descriptions
|
|
37
|
+
- Match against task nature (UI, deployment, native modules, etc.)
|
|
38
|
+
|
|
39
|
+
Select all skills that apply to implementation scope.
|
|
40
|
+
|
|
41
|
+
## Step 3: Read Skill Documentation
|
|
42
|
+
|
|
43
|
+
For each relevant skill, read the full file:
|
|
44
|
+
- Read `.allhands/skills/<skill-name>/SKILL.md`
|
|
45
|
+
|
|
46
|
+
Extract:
|
|
47
|
+
- **Key patterns**: Code patterns, library preferences, common pitfalls
|
|
48
|
+
- **Best practices**: Guidelines specific to this domain
|
|
49
|
+
- **References**: Sub-documents within the skill folder
|
|
50
|
+
|
|
51
|
+
## Step 4: Extract Knowledge for Prompt
|
|
52
|
+
|
|
53
|
+
Synthesize skill content into actionable prompt guidance:
|
|
54
|
+
- Distill key instructions
|
|
55
|
+
- Include specific examples where relevant
|
|
56
|
+
- Reference sources
|
|
57
|
+
- Avoid duplication - extract what's task-relevant
|
|
58
|
+
|
|
59
|
+
## Step 5: Output with Sources
|
|
60
|
+
|
|
61
|
+
Provide:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
## Skill-Derived Guidance
|
|
65
|
+
|
|
66
|
+
### From building-expo-ui:
|
|
67
|
+
- Use `<Link.Preview>` for context menus
|
|
68
|
+
- Prefer `contentInsetAdjustmentBehavior="automatic"` over SafeAreaView
|
|
69
|
+
|
|
70
|
+
### From react-native-best-practices:
|
|
71
|
+
- Profile with React DevTools before optimizing
|
|
72
|
+
- Use FlashList for lists with >50 items
|
|
73
|
+
|
|
74
|
+
## Sources Consulted
|
|
75
|
+
- .allhands/skills/building-expo-ui/SKILL.md
|
|
76
|
+
- .allhands/skills/react-native-best-practices/SKILL.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## For Prompt Curation
|
|
80
|
+
|
|
81
|
+
When used via PROMPT_TASKS_CURATION:
|
|
82
|
+
- Add skill file paths to prompt's `skills` frontmatter
|
|
83
|
+
- Embed extracted guidance in prompt's Tasks section
|
|
84
|
+
- Makes domain expertise explicit and immediately available to executors
|