@pennyfarthing/core 10.0.0 → 10.0.2
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/LICENSE +14 -0
- package/package.json +22 -12
- package/pennyfarthing-dist/agents/README.md +348 -0
- package/pennyfarthing-dist/agents/architect.md +180 -0
- package/pennyfarthing-dist/agents/dev.md +169 -0
- package/pennyfarthing-dist/agents/devops.md +203 -0
- package/pennyfarthing-dist/agents/handoff.md +235 -0
- package/pennyfarthing-dist/agents/orchestrator.md +182 -0
- package/pennyfarthing-dist/agents/pm.md +152 -0
- package/pennyfarthing-dist/agents/reviewer-preflight.md +129 -0
- package/pennyfarthing-dist/agents/reviewer.md +197 -0
- package/pennyfarthing-dist/agents/sm-file-summary.md +79 -0
- package/pennyfarthing-dist/agents/sm-finish.md +82 -0
- package/pennyfarthing-dist/agents/sm-handoff.md +129 -0
- package/pennyfarthing-dist/agents/sm-setup.md +251 -0
- package/pennyfarthing-dist/agents/sm.md +298 -0
- package/pennyfarthing-dist/agents/tea.md +161 -0
- package/pennyfarthing-dist/agents/tech-writer.md +226 -0
- package/pennyfarthing-dist/agents/testing-runner.md +184 -0
- package/pennyfarthing-dist/agents/ux-designer.md +236 -0
- package/pennyfarthing-dist/agents/workflow-status-check.md +96 -0
- package/pennyfarthing-dist/commands/architect.md +9 -0
- package/pennyfarthing-dist/commands/benchmark-control.md +69 -0
- package/pennyfarthing-dist/commands/benchmark.md +485 -0
- package/pennyfarthing-dist/commands/brainstorming.md +91 -0
- package/pennyfarthing-dist/commands/check.md +156 -0
- package/pennyfarthing-dist/commands/chore.md +218 -0
- package/pennyfarthing-dist/commands/close-epic.md +139 -0
- package/pennyfarthing-dist/commands/continue-session.md +218 -0
- package/pennyfarthing-dist/commands/create-branches-from-story.md +358 -0
- package/pennyfarthing-dist/commands/create-theme.md +29 -0
- package/pennyfarthing-dist/commands/dev.md +9 -0
- package/pennyfarthing-dist/commands/devops.md +9 -0
- package/pennyfarthing-dist/commands/fix-blocker.md +22 -0
- package/pennyfarthing-dist/commands/git-cleanup.md +57 -0
- package/pennyfarthing-dist/commands/health-check.md +143 -0
- package/pennyfarthing-dist/commands/help.md +264 -0
- package/pennyfarthing-dist/commands/job-fair.md +102 -0
- package/pennyfarthing-dist/commands/list-themes.md +21 -0
- package/pennyfarthing-dist/commands/new-work.md +23 -0
- package/pennyfarthing-dist/commands/orchestrator.md +9 -0
- package/pennyfarthing-dist/commands/parallel-work.md +73 -0
- package/pennyfarthing-dist/commands/party-mode.md +77 -0
- package/pennyfarthing-dist/commands/patch.md +210 -0
- package/pennyfarthing-dist/commands/permissions.md +193 -0
- package/pennyfarthing-dist/commands/pm.md +9 -0
- package/pennyfarthing-dist/commands/prime.md +136 -0
- package/pennyfarthing-dist/commands/release.md +74 -0
- package/pennyfarthing-dist/commands/repo-status.md +49 -0
- package/pennyfarthing-dist/commands/retro.md +200 -0
- package/pennyfarthing-dist/commands/reviewer.md +9 -0
- package/pennyfarthing-dist/commands/run-ci.md +116 -0
- package/pennyfarthing-dist/commands/set-theme.md +56 -0
- package/pennyfarthing-dist/commands/setup.md +65 -0
- package/pennyfarthing-dist/commands/show-theme.md +21 -0
- package/pennyfarthing-dist/commands/sm.md +9 -0
- package/pennyfarthing-dist/commands/solo.md +447 -0
- package/pennyfarthing-dist/commands/sprint-planning.md +109 -0
- package/pennyfarthing-dist/commands/sprint.md +142 -0
- package/pennyfarthing-dist/commands/standalone.md +194 -0
- package/pennyfarthing-dist/commands/start-epic.md +168 -0
- package/pennyfarthing-dist/commands/sync-epic-to-jira.md +184 -0
- package/pennyfarthing-dist/commands/sync-work-with-sprint.md +373 -0
- package/pennyfarthing-dist/commands/tea.md +9 -0
- package/pennyfarthing-dist/commands/tech-writer.md +9 -0
- package/pennyfarthing-dist/commands/theme-maker.md +676 -0
- package/pennyfarthing-dist/commands/update-domain-docs.md +83 -0
- package/pennyfarthing-dist/commands/ux-designer.md +9 -0
- package/pennyfarthing-dist/commands/work.md +25 -0
- package/pennyfarthing-dist/commands/workflow.md +21 -0
- package/pennyfarthing-dist/guides/agent-behavior.md +92 -0
- package/pennyfarthing-dist/guides/agent-coordination.md +475 -0
- package/pennyfarthing-dist/guides/agent-tag-taxonomy.md +432 -0
- package/pennyfarthing-dist/guides/agent-template-strategic.md +148 -0
- package/pennyfarthing-dist/guides/agent-template-tactical.md +162 -0
- package/pennyfarthing-dist/guides/hooks.md +230 -0
- package/pennyfarthing-dist/guides/measurement-framework.md +210 -0
- package/pennyfarthing-dist/guides/patterns/approval-gates-pattern.md +766 -0
- package/pennyfarthing-dist/guides/patterns/fan-out-fan-in-pattern.md +574 -0
- package/pennyfarthing-dist/guides/patterns/helper-delegation-pattern.md +488 -0
- package/pennyfarthing-dist/guides/patterns/tdd-flow-pattern.md +402 -0
- package/pennyfarthing-dist/guides/permission-protocol.md +188 -0
- package/pennyfarthing-dist/guides/persona-loading.md +46 -0
- package/pennyfarthing-dist/guides/prompt-patterns.md +338 -0
- package/pennyfarthing-dist/guides/scale-levels.md +114 -0
- package/pennyfarthing-dist/guides/session-artifacts.md +193 -0
- package/pennyfarthing-dist/guides/session-schema.md +346 -0
- package/pennyfarthing-dist/guides/skill-schema.md +412 -0
- package/pennyfarthing-dist/guides/workflow-schema.md +257 -0
- package/pennyfarthing-dist/guides/workflow-step-schema.md +512 -0
- package/pennyfarthing-dist/guides/worktree-mode.md +113 -0
- package/pennyfarthing-dist/guides/xml-tags.md +627 -0
- package/pennyfarthing-dist/output-styles/teaching.md +33 -0
- package/pennyfarthing-dist/output-styles/terse.md +20 -0
- package/pennyfarthing-dist/output-styles/verbose.md +28 -0
- package/pennyfarthing-dist/personas/themes/a-team.yaml +331 -0
- package/pennyfarthing-dist/personas/themes/alice-in-wonderland.yaml +324 -0
- package/pennyfarthing-dist/personas/themes/battlestar-galactica.yaml +282 -0
- package/pennyfarthing-dist/personas/themes/blade-runner.yaml +289 -0
- package/pennyfarthing-dist/personas/themes/catch-22.yaml +304 -0
- package/pennyfarthing-dist/personas/themes/control.yaml +201 -0
- package/pennyfarthing-dist/personas/themes/cowboy-bebop.yaml +315 -0
- package/pennyfarthing-dist/personas/themes/discworld.yaml +334 -0
- package/pennyfarthing-dist/personas/themes/doctor-who.yaml +284 -0
- package/pennyfarthing-dist/personas/themes/dune.yaml +301 -0
- package/pennyfarthing-dist/personas/themes/firefly.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/game-of-thrones.yaml +284 -0
- package/pennyfarthing-dist/personas/themes/harry-potter.yaml +316 -0
- package/pennyfarthing-dist/personas/themes/hitchhikers-guide.yaml +323 -0
- package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +326 -0
- package/pennyfarthing-dist/personas/themes/mad-max.yaml +349 -0
- package/pennyfarthing-dist/personas/themes/mash.yaml +329 -0
- package/pennyfarthing-dist/personas/themes/princess-bride.yaml +344 -0
- package/pennyfarthing-dist/personas/themes/sandman.yaml +282 -0
- package/pennyfarthing-dist/personas/themes/star-trek-tng.yaml +358 -0
- package/pennyfarthing-dist/personas/themes/star-wars.yaml +297 -0
- package/pennyfarthing-dist/personas/themes/the-expanse.yaml +337 -0
- package/pennyfarthing-dist/personas/themes/the-matrix.yaml +342 -0
- package/pennyfarthing-dist/personas/themes/watchmen.yaml +285 -0
- package/pennyfarthing-dist/personas/themes/west-wing.yaml +285 -0
- package/pennyfarthing-dist/personas/themes/x-files.yaml +296 -0
- package/pennyfarthing-dist/scripts/README.md +87 -0
- package/pennyfarthing-dist/scripts/core/README.md +25 -0
- package/pennyfarthing-dist/scripts/core/agent-session.sh +390 -0
- package/pennyfarthing-dist/scripts/core/check-context.sh +194 -0
- package/pennyfarthing-dist/scripts/core/handoff-marker.sh +112 -0
- package/pennyfarthing-dist/scripts/core/phase-check-start.sh +90 -0
- package/pennyfarthing-dist/scripts/core/prime.sh +30 -0
- package/pennyfarthing-dist/scripts/cyclist/is-cyclist.sh +21 -0
- package/pennyfarthing-dist/scripts/git/README.md +25 -0
- package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +267 -0
- package/pennyfarthing-dist/scripts/git/git-status-all.sh +152 -0
- package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +79 -0
- package/pennyfarthing-dist/scripts/git/release.sh +246 -0
- package/pennyfarthing-dist/scripts/git/worktree-manager.sh +497 -0
- package/pennyfarthing-dist/scripts/health/drift-detection.sh +156 -0
- package/pennyfarthing-dist/scripts/hooks/README.md +32 -0
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +106 -0
- package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +95 -0
- package/pennyfarthing-dist/scripts/hooks/context-warning.sh +65 -0
- package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +35 -0
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +150 -0
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +190 -0
- package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +71 -0
- package/pennyfarthing-dist/scripts/hooks/pre-push.sh +42 -0
- package/pennyfarthing-dist/scripts/hooks/question-reflector-check.sh +20 -0
- package/pennyfarthing-dist/scripts/hooks/question_reflector_check.py +499 -0
- package/pennyfarthing-dist/scripts/hooks/schema-validation.sh +30 -0
- package/pennyfarthing-dist/scripts/hooks/session-start.sh +97 -0
- package/pennyfarthing-dist/scripts/hooks/session-stop.sh +65 -0
- package/pennyfarthing-dist/scripts/hooks/sprint-yaml-validation.sh +78 -0
- package/pennyfarthing-dist/scripts/hooks/welcome-hook.sh +94 -0
- package/pennyfarthing-dist/scripts/jira/README.md +36 -0
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +95 -0
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +91 -0
- package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +22 -0
- package/pennyfarthing-dist/scripts/jira/jira-lib.sh +464 -0
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +260 -0
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +18 -0
- package/pennyfarthing-dist/scripts/jira/jira-sync.sh +16 -0
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +16 -0
- package/pennyfarthing-dist/scripts/jira/sync-epic-to-jira.sh +16 -0
- package/pennyfarthing-dist/scripts/lib/README.md +29 -0
- package/pennyfarthing-dist/scripts/lib/background-tasks.sh +177 -0
- package/pennyfarthing-dist/scripts/lib/checkpoint.sh +136 -0
- package/pennyfarthing-dist/scripts/lib/common.sh +212 -0
- package/pennyfarthing-dist/scripts/lib/file-lock.sh +269 -0
- package/pennyfarthing-dist/scripts/lib/find-root.sh +58 -0
- package/pennyfarthing-dist/scripts/lib/logging.sh +186 -0
- package/pennyfarthing-dist/scripts/lib/retry.sh +76 -0
- package/pennyfarthing-dist/scripts/maintenance/migrate-theme-schema.mjs +102 -0
- package/pennyfarthing-dist/scripts/maintenance/sidecar-health.sh +91 -0
- package/pennyfarthing-dist/scripts/misc/README.md +44 -0
- package/pennyfarthing-dist/scripts/misc/add-short-names.sh +13 -0
- package/pennyfarthing-dist/scripts/misc/add_short_names.py +226 -0
- package/pennyfarthing-dist/scripts/misc/backlog.sh +77 -0
- package/pennyfarthing-dist/scripts/misc/check-status.sh +247 -0
- package/pennyfarthing-dist/scripts/misc/find-related-work.sh +231 -0
- package/pennyfarthing-dist/scripts/misc/generate-skill-docs.sh +107 -0
- package/pennyfarthing-dist/scripts/misc/log-skill-usage.sh +74 -0
- package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.sh +10 -0
- package/pennyfarthing-dist/scripts/misc/migrate_bmad_workflow.py +319 -0
- package/pennyfarthing-dist/scripts/misc/repo-scan.sh +141 -0
- package/pennyfarthing-dist/scripts/misc/repo-utils.sh +778 -0
- package/pennyfarthing-dist/scripts/misc/run-ci.sh +212 -0
- package/pennyfarthing-dist/scripts/misc/run-timestamp.sh +7 -0
- package/pennyfarthing-dist/scripts/misc/session-cleanup.sh +319 -0
- package/pennyfarthing-dist/scripts/misc/skill-usage-report.sh +193 -0
- package/pennyfarthing-dist/scripts/misc/statusline.sh +257 -0
- package/pennyfarthing-dist/scripts/misc/uninstall.sh +275 -0
- package/pennyfarthing-dist/scripts/misc/validate-subagent-frontmatter.sh +160 -0
- package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +417 -0
- package/pennyfarthing-dist/scripts/portraits/generate-portraits.sh +54 -0
- package/pennyfarthing-dist/scripts/sprint/README.md +29 -0
- package/pennyfarthing-dist/scripts/sprint/archive-story.sh +133 -0
- package/pennyfarthing-dist/scripts/sprint/available-stories.sh +91 -0
- package/pennyfarthing-dist/scripts/sprint/check-story.sh +158 -0
- package/pennyfarthing-dist/scripts/sprint/get-epic-field.sh +52 -0
- package/pennyfarthing-dist/scripts/sprint/get-story-field.sh +63 -0
- package/pennyfarthing-dist/scripts/sprint/list-future.sh +145 -0
- package/pennyfarthing-dist/scripts/sprint/new-sprint.sh +110 -0
- package/pennyfarthing-dist/scripts/sprint/promote-epic.sh +148 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-common.sh +415 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-info.sh +33 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-metrics.sh +230 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-status.sh +134 -0
- package/pennyfarthing-dist/scripts/sprint/validate-sprint-yaml.sh +139 -0
- package/pennyfarthing-dist/scripts/story/README.md +23 -0
- package/pennyfarthing-dist/scripts/story/create-story.sh +19 -0
- package/pennyfarthing-dist/scripts/story/size-story.sh +18 -0
- package/pennyfarthing-dist/scripts/story/story-template.sh +18 -0
- package/pennyfarthing-dist/scripts/test/README.md +23 -0
- package/pennyfarthing-dist/scripts/test/ensure-swebench-data.sh +59 -0
- package/pennyfarthing-dist/scripts/test/ground-truth-judge.py +220 -0
- package/pennyfarthing-dist/scripts/test/swebench-judge.py +374 -0
- package/pennyfarthing-dist/scripts/test/test-cache.sh +165 -0
- package/pennyfarthing-dist/scripts/test/test-setup.sh +337 -0
- package/pennyfarthing-dist/scripts/tests/check.test.sh +582 -0
- package/pennyfarthing-dist/scripts/tests/dev-story-workflow-import.test.sh +515 -0
- package/pennyfarthing-dist/scripts/tests/epics-and-stories-workflow-import.test.sh +599 -0
- package/pennyfarthing-dist/scripts/tests/handoff-phase-update.test.sh +332 -0
- package/pennyfarthing-dist/scripts/tests/implementation-readiness-workflow-import.test.sh +573 -0
- package/pennyfarthing-dist/scripts/tests/migrate-bmad-workflow.test.sh +859 -0
- package/pennyfarthing-dist/scripts/tests/prd-workflow-import.test.sh +662 -0
- package/pennyfarthing-dist/scripts/tests/project-context-workflow-import.test.sh +589 -0
- package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +106 -0
- package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +597 -0
- package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +514 -0
- package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +517 -0
- package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +331 -0
- package/pennyfarthing-dist/scripts/tests/ux-design-workflow-import.test.sh +647 -0
- package/pennyfarthing-dist/scripts/theme/README.md +22 -0
- package/pennyfarthing-dist/scripts/theme/compute-theme-tiers.sh +13 -0
- package/pennyfarthing-dist/scripts/theme/compute_theme_tiers.py +402 -0
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +30 -0
- package/pennyfarthing-dist/scripts/theme/update-theme-tiers.sh +97 -0
- package/pennyfarthing-dist/scripts/validation/validate-agent-schema.sh +576 -0
- package/pennyfarthing-dist/scripts/workflow/README.md +28 -0
- package/pennyfarthing-dist/scripts/workflow/check.py +502 -0
- package/pennyfarthing-dist/scripts/workflow/check.sh +24 -0
- package/pennyfarthing-dist/scripts/workflow/complete-step.py +304 -0
- package/pennyfarthing-dist/scripts/workflow/finish-story.sh +154 -0
- package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +222 -0
- package/pennyfarthing-dist/scripts/workflow/get-workflow-type.py +61 -0
- package/pennyfarthing-dist/scripts/workflow/get-workflow-type.sh +13 -0
- package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +124 -0
- package/pennyfarthing-dist/scripts/workflow/phase-owner.sh +34 -0
- package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +157 -0
- package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +132 -0
- package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +250 -0
- package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +161 -0
- package/pennyfarthing-dist/skills/agentic-patterns/SKILL.md +246 -0
- package/pennyfarthing-dist/skills/changelog/SKILL.md +385 -0
- package/pennyfarthing-dist/skills/code-review/SKILL.md +172 -0
- package/pennyfarthing-dist/skills/context-engineering/SKILL.md +277 -0
- package/pennyfarthing-dist/skills/cyclist/SKILL.md +88 -0
- package/pennyfarthing-dist/skills/dev-patterns/SKILL.md +461 -0
- package/pennyfarthing-dist/skills/finalize-run/SKILL.md +261 -0
- package/pennyfarthing-dist/skills/jira/SKILL.md +508 -0
- package/pennyfarthing-dist/skills/judge/SKILL.md +644 -0
- package/pennyfarthing-dist/skills/just/SKILL.md +414 -0
- package/pennyfarthing-dist/skills/mermaid/SKILL.md +256 -0
- package/pennyfarthing-dist/skills/otel/skill.md +227 -0
- package/pennyfarthing-dist/skills/permissions/skill.md +157 -0
- package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +187 -0
- package/pennyfarthing-dist/skills/skill-registry.schema.json +107 -0
- package/pennyfarthing-dist/skills/skill-registry.yaml +393 -0
- package/pennyfarthing-dist/skills/sprint/scripts/archive-story.sh +101 -0
- package/pennyfarthing-dist/skills/sprint/scripts/available-stories.sh +97 -0
- package/pennyfarthing-dist/skills/sprint/scripts/check-story.sh +164 -0
- package/pennyfarthing-dist/skills/sprint/scripts/create-jira-epic.sh +101 -0
- package/pennyfarthing-dist/skills/sprint/scripts/new-sprint.sh +116 -0
- package/pennyfarthing-dist/skills/sprint/scripts/promote-epic.sh +164 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-info.sh +39 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-status.sh +147 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sync-epic-jira.sh +93 -0
- package/pennyfarthing-dist/skills/sprint/skill.md +465 -0
- package/pennyfarthing-dist/skills/story/scripts/create-story.sh +159 -0
- package/pennyfarthing-dist/skills/story/scripts/size-story.sh +198 -0
- package/pennyfarthing-dist/skills/story/scripts/story-template.sh +162 -0
- package/pennyfarthing-dist/skills/story/skill.md +219 -0
- package/pennyfarthing-dist/skills/systematic-debugging/SKILL.md +446 -0
- package/pennyfarthing-dist/skills/testing/SKILL.md +121 -0
- package/pennyfarthing-dist/skills/testing/references/troubleshooting.md +124 -0
- package/pennyfarthing-dist/skills/theme/skill.md +141 -0
- package/pennyfarthing-dist/skills/theme-creation/SKILL.md +178 -0
- package/pennyfarthing-dist/skills/workflow/scripts/list-workflows.sh +91 -0
- package/pennyfarthing-dist/skills/workflow/scripts/resume-workflow.sh +163 -0
- package/pennyfarthing-dist/skills/workflow/scripts/show-workflow.sh +138 -0
- package/pennyfarthing-dist/skills/workflow/scripts/start-workflow.sh +273 -0
- package/pennyfarthing-dist/skills/workflow/scripts/workflow-status.sh +167 -0
- package/pennyfarthing-dist/skills/workflow/skill.md +345 -0
- package/pennyfarthing-dist/skills/yq/SKILL.md +272 -0
- package/pennyfarthing-dist/templates/LEADERBOARD.schema.yaml +187 -0
- package/pennyfarthing-dist/templates/LEADERBOARD.template.md +59 -0
- package/pennyfarthing-dist/templates/agent-scopes.yaml.template +276 -0
- package/pennyfarthing-dist/templates/pennyfarthing-settings.yaml.template +61 -0
- package/pennyfarthing-dist/templates/persona-config.yaml.template +22 -0
- package/pennyfarthing-dist/templates/preferences.yaml.template +15 -0
- package/pennyfarthing-dist/templates/settings.local.json.template +130 -0
- package/pennyfarthing-dist/templates/setup-env.sh.template +18 -0
- package/pennyfarthing-dist/templates/shared-context.md.template +70 -0
- package/pennyfarthing-dist/templates/sidecar/decisions.md.template +40 -0
- package/pennyfarthing-dist/templates/sidecar/gotchas.md.template +37 -0
- package/pennyfarthing-dist/templates/sidecar/patterns.md.template +34 -0
- package/pennyfarthing-dist/workflows/agent-docs.yaml +70 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-01-initialize.md +113 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-01b-continue.md +105 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-02-context.md +127 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-03-patterns.md +145 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-04-components.md +150 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-05-interfaces.md +145 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-06-risks.md +154 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-07-document.md +172 -0
- package/pennyfarthing-dist/workflows/architecture/templates/architecture-decision.md +102 -0
- package/pennyfarthing-dist/workflows/architecture.yaml +65 -0
- package/pennyfarthing-dist/workflows/bdd.yaml +60 -0
- package/pennyfarthing-dist/workflows/brainstorming/brain-methods.csv +62 -0
- package/pennyfarthing-dist/workflows/brainstorming/checklist.md +44 -0
- package/pennyfarthing-dist/workflows/brainstorming/instructions.md +736 -0
- package/pennyfarthing-dist/workflows/brainstorming/workflow.yaml +49 -0
- package/pennyfarthing-dist/workflows/code-review/checklist.md +23 -0
- package/pennyfarthing-dist/workflows/code-review/instructions.md +234 -0
- package/pennyfarthing-dist/workflows/code-review/workflow.yaml +51 -0
- package/pennyfarthing-dist/workflows/dev-story/checklist.md +80 -0
- package/pennyfarthing-dist/workflows/dev-story/instructions.xml +410 -0
- package/pennyfarthing-dist/workflows/dev-story/workflow.yaml +50 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-01-validate-prerequisites.md +281 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-02-design-epics.md +256 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-03-create-stories.md +298 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-04-final-validation.md +177 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-05-import-to-future.md +145 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/templates/epics-template.md +57 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/workflow.yaml +28 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-01-analyze.md +103 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-02-categorize.md +147 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-03-execute.md +215 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-04-verify.md +97 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-05-complete.md +78 -0
- package/pennyfarthing-dist/workflows/git-cleanup.yaml +59 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-01-document-discovery.md +211 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-02-prd-analysis.md +199 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-03-epic-coverage-validation.md +202 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-04-ux-alignment.md +162 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-05-epic-quality-review.md +280 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-06-final-assessment.md +158 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/templates/readiness-report-template.md +4 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/workflow.yaml +40 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-01-connect.md +257 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-02-explore.md +107 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-03-fix.md +127 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-04-commit.md +122 -0
- package/pennyfarthing-dist/workflows/interactive-debug/workflow.yaml +51 -0
- package/pennyfarthing-dist/workflows/patch.yaml +67 -0
- package/pennyfarthing-dist/workflows/prd/data/domain-complexity.csv +13 -0
- package/pennyfarthing-dist/workflows/prd/data/prd-purpose.md +197 -0
- package/pennyfarthing-dist/workflows/prd/data/project-types.csv +11 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01-init.md +197 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01b-continue.md +159 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-02-discovery.md +230 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-03-success.md +232 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-04-journeys.md +219 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-05-domain.md +213 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-06-innovation.md +232 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-07-project-type.md +243 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-08-scoping.md +234 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-09-functional.md +237 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-10-nonfunctional.md +248 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-11-polish.md +223 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-12-complete.md +186 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01-discovery.md +253 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01b-legacy-conversion.md +214 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-02-review.md +255 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-03-edit.md +259 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-04-complete.md +174 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-01-discovery.md +224 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02-format-detection.md +197 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02b-parity-check.md +215 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-03-density-validation.md +180 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-04-brief-coverage-validation.md +220 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-05-measurability-validation.md +234 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-06-traceability-validation.md +223 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-07-implementation-leakage-validation.md +211 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-08-domain-compliance-validation.md +249 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-09-project-type-validation.md +269 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-10-smart-validation.md +215 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-11-holistic-quality-validation.md +270 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-12-completeness-validation.md +248 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-13-report-complete.md +238 -0
- package/pennyfarthing-dist/workflows/prd/templates/prd-template.md +10 -0
- package/pennyfarthing-dist/workflows/prd/workflow.yaml +42 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01-init.md +195 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01b-continue.md +180 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-02-vision.md +221 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-03-users.md +224 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-04-metrics.md +228 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-05-scope.md +243 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-06-complete.md +216 -0
- package/pennyfarthing-dist/workflows/product-brief/templates/product-brief.template.md +10 -0
- package/pennyfarthing-dist/workflows/product-brief/workflow.yaml +31 -0
- package/pennyfarthing-dist/workflows/project-context/project-context-template.md +21 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-01-discover.md +206 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-02-generate.md +349 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-03-complete.md +306 -0
- package/pennyfarthing-dist/workflows/project-context/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-01-discover.md +157 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-02-clone-repos.md +217 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-03-repos-yaml.md +159 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-04-claude-md.md +186 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-05-shared-context.md +185 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-06-task-runner.md +279 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-07-theme.md +200 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-08-theme-packs.md +142 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-cyclist.md +245 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-complete.md +204 -0
- package/pennyfarthing-dist/workflows/project-setup/workflow.yaml +41 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-01-mode-detection.md +177 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-02-context-gathering.md +143 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-03-execute.md +138 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-04-self-check.md +135 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-05-adversarial-review.md +129 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-06-resolve-findings.md +163 -0
- package/pennyfarthing-dist/workflows/quick-dev/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-01-understand.md +201 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-02-investigate.md +156 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-03-generate.md +140 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-04-review.md +203 -0
- package/pennyfarthing-dist/workflows/quick-spec/tech-spec-template.md +74 -0
- package/pennyfarthing-dist/workflows/quick-spec/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/release/steps/step-01-preflight.md +105 -0
- package/pennyfarthing-dist/workflows/release/steps/step-02-bump.md +95 -0
- package/pennyfarthing-dist/workflows/release/steps/step-03-changelog.md +125 -0
- package/pennyfarthing-dist/workflows/release/steps/step-04-readme.md +101 -0
- package/pennyfarthing-dist/workflows/release/steps/step-05-claude-md.md +102 -0
- package/pennyfarthing-dist/workflows/release/steps/step-06-retro.md +59 -0
- package/pennyfarthing-dist/workflows/release/steps/step-07-commit.md +109 -0
- package/pennyfarthing-dist/workflows/release/steps/step-08-merge.md +65 -0
- package/pennyfarthing-dist/workflows/release/steps/step-09-push.md +75 -0
- package/pennyfarthing-dist/workflows/release/steps/step-10-publish.md +93 -0
- package/pennyfarthing-dist/workflows/release/steps/step-11-finalize.md +71 -0
- package/pennyfarthing-dist/workflows/release.yaml +62 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-01-init.md +159 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-02-domain-analysis.md +253 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-03-competitive-landscape.md +263 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-04-regulatory-focus.md +232 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-05-technical-trends.md +260 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-06-research-synthesis.md +477 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-01-init.md +205 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-behavior.md +262 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-insights.md +227 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-03-customer-pain-points.md +275 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-04-customer-decisions.md +286 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-05-competitive-analysis.md +203 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-06-research-completion.md +510 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-01-init.md +159 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-02-technical-overview.md +264 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-03-integration-patterns.md +274 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-04-architectural-patterns.md +228 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-05-implementation-research.md +267 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-06-research-synthesis.md +522 -0
- package/pennyfarthing-dist/workflows/research/templates/research.template.md +29 -0
- package/pennyfarthing-dist/workflows/research/workflow.yaml +45 -0
- package/pennyfarthing-dist/workflows/retrospective/checklist.md +31 -0
- package/pennyfarthing-dist/workflows/retrospective/instructions.md +1443 -0
- package/pennyfarthing-dist/workflows/retrospective/workflow.yaml +50 -0
- package/pennyfarthing-dist/workflows/sprint-planning/checklist.md +33 -0
- package/pennyfarthing-dist/workflows/sprint-planning/sprint-status-template.yaml +55 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-01-parse-epic-files.md +69 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-02-build-sprint-status.md +61 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-03-status-detection.md +80 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-04-generate-status-file.md +90 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-05-validate-and-report.md +78 -0
- package/pennyfarthing-dist/workflows/sprint-planning/workflow.yaml +34 -0
- package/pennyfarthing-dist/workflows/tdd.yaml +50 -0
- package/pennyfarthing-dist/workflows/trivial.yaml +40 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01-init.md +141 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01b-continue.md +133 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-02-discovery.md +196 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-03-core-experience.md +222 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-04-emotional-response.md +225 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-05-inspiration.md +240 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-06-design-system.md +258 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-07-defining-experience.md +260 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-08-visual-foundation.md +230 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-09-design-directions.md +230 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-10-user-journeys.md +247 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-11-component-strategy.md +254 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-12-ux-patterns.md +243 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-13-responsive-accessibility.md +270 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-14-complete.md +234 -0
- package/pennyfarthing-dist/workflows/ux-design/ux-design-template.md +13 -0
- package/pennyfarthing-dist/workflows/ux-design/workflow.yaml +41 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Check Pennyfarthing installation health and apply updates
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
d="$PWD"; while [[ ! -d "$d/.pennyfarthing" ]] && [[ "$d" != "/" ]]; do d="$(dirname "$d")"; done
|
|
7
|
+
export PYTHONPATH="$(dirname "$(dirname "$(cd "$d/.pennyfarthing/scripts" && pwd -P)")"):${PYTHONPATH:-}"
|
|
8
|
+
python3 -m pennyfarthing_scripts.cli agent start "devops"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
<agent-activation>
|
|
12
|
+
1. Load DevOps agent for infrastructure work
|
|
13
|
+
2. Run health check via CLI
|
|
14
|
+
</agent-activation>
|
|
15
|
+
|
|
16
|
+
<purpose>
|
|
17
|
+
Examine current Pennyfarthing installation, detect drift from expected state, and guide user through fixes/updates.
|
|
18
|
+
</purpose>
|
|
19
|
+
|
|
20
|
+
<when-to-use>
|
|
21
|
+
- After updating Pennyfarthing (`pennyfarthing update`)
|
|
22
|
+
- When something seems broken
|
|
23
|
+
- Periodic health verification
|
|
24
|
+
- Before starting new sprint
|
|
25
|
+
</when-to-use>
|
|
26
|
+
|
|
27
|
+
<health-checks>
|
|
28
|
+
|
|
29
|
+
## Health Check
|
|
30
|
+
|
|
31
|
+
Use the pennyfarthing CLI:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Full health check
|
|
35
|
+
pennyfarthing doctor
|
|
36
|
+
|
|
37
|
+
# Or via npx
|
|
38
|
+
npx pennyfarthing doctor
|
|
39
|
+
|
|
40
|
+
# Auto-fix issues
|
|
41
|
+
pennyfarthing doctor --fix
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The CLI checks:
|
|
45
|
+
- manifest.json exists and is valid
|
|
46
|
+
- All managed files present in .claude/pennyfarthing/
|
|
47
|
+
- Symlinks point to correct targets
|
|
48
|
+
- User directories exist (.claude/project/)
|
|
49
|
+
- Settings paths are correct
|
|
50
|
+
- Hook scripts are executable
|
|
51
|
+
|
|
52
|
+
## Check for Updates
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Check if update available
|
|
56
|
+
pennyfarthing update --check
|
|
57
|
+
|
|
58
|
+
# Apply update
|
|
59
|
+
pennyfarthing update
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
</health-checks>
|
|
63
|
+
|
|
64
|
+
<output-format>
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
# Pennyfarthing Health Check
|
|
68
|
+
|
|
69
|
+
## Installation: npm v2.2.x
|
|
70
|
+
## Status: [HEALTHY | NEEDS_UPDATE | NEEDS_FIX]
|
|
71
|
+
|
|
72
|
+
### Checks
|
|
73
|
+
| Check | Status | Detail |
|
|
74
|
+
|-------|--------|--------|
|
|
75
|
+
| Installation | OK | npm v2.2.0 |
|
|
76
|
+
| Core Files | OK | All present |
|
|
77
|
+
| Symlinks | OK | All valid |
|
|
78
|
+
| User Files | OK | 10 sidecars |
|
|
79
|
+
| Directories | OK | sprint/, .session/ |
|
|
80
|
+
| Hooks | WARN | Not executable |
|
|
81
|
+
|
|
82
|
+
### Recommended Actions
|
|
83
|
+
1. [Action with command to run]
|
|
84
|
+
2. [Action with command to run]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</output-format>
|
|
88
|
+
|
|
89
|
+
<auto-fixes>
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
pennyfarthing doctor --fix
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The CLI can auto-fix:
|
|
96
|
+
- Broken symlinks
|
|
97
|
+
- Missing directories
|
|
98
|
+
- Outdated settings format
|
|
99
|
+
- Non-executable hooks
|
|
100
|
+
|
|
101
|
+
**Always ask before applying fixes.**
|
|
102
|
+
|
|
103
|
+
</auto-fixes>
|
|
104
|
+
|
|
105
|
+
<drift-detection>
|
|
106
|
+
|
|
107
|
+
## Agent Behavior Drift Detection
|
|
108
|
+
|
|
109
|
+
Check if agents are following expected behavioral patterns:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Run drift detection
|
|
113
|
+
.pennyfarthing/scripts/health/drift-detection.sh
|
|
114
|
+
|
|
115
|
+
# Verbose mode (see individual files)
|
|
116
|
+
.pennyfarthing/scripts/health/drift-detection.sh --verbose
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The script analyzes archived session files for:
|
|
120
|
+
|
|
121
|
+
| Agent | Checks For |
|
|
122
|
+
|-------|------------|
|
|
123
|
+
| **Reviewer** | Substantive comments (not just approvals) |
|
|
124
|
+
| **Dev** | Test evidence when declaring GREEN |
|
|
125
|
+
| **SM** | Structured handoff sections with target agent |
|
|
126
|
+
| **TEA** | Test file references before Dev handoff |
|
|
127
|
+
|
|
128
|
+
**Healthy rates:** Under 10% drift is considered normal.
|
|
129
|
+
|
|
130
|
+
**When drift is high:**
|
|
131
|
+
- Review agent behavior files for clarity
|
|
132
|
+
- Add explicit gates/checklists
|
|
133
|
+
- Consider making critical behaviors automatic via scripts
|
|
134
|
+
|
|
135
|
+
</drift-detection>
|
|
136
|
+
|
|
137
|
+
<reference>
|
|
138
|
+
- **CLI:** `pennyfarthing doctor`, `pennyfarthing update`
|
|
139
|
+
- **Manifest:** `.claude/manifest.json` (tracks version and file hashes)
|
|
140
|
+
- **Source:** `.claude/pennyfarthing/` (managed files)
|
|
141
|
+
- **Symlinks:** `.pennyfarthing/agents/`, `.claude/commands/`, etc.
|
|
142
|
+
- **Drift Detection:** `.pennyfarthing/scripts/health/drift-detection.sh`
|
|
143
|
+
</reference>
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Context-aware help for Pennyfarthing commands, agents, and workflows
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<purpose>
|
|
6
|
+
Get help with Pennyfarthing commands, agents, themes, and workflows.
|
|
7
|
+
Provides quick-start guidance for new users and context-aware suggestions based on current work state.
|
|
8
|
+
</purpose>
|
|
9
|
+
|
|
10
|
+
<when-to-use>
|
|
11
|
+
- New to Pennyfarthing and need orientation
|
|
12
|
+
- Looking for a specific command or agent
|
|
13
|
+
- Want to understand the TDD workflow
|
|
14
|
+
- Need to check available themes
|
|
15
|
+
- Forgot what command to use next
|
|
16
|
+
</when-to-use>
|
|
17
|
+
|
|
18
|
+
<quick-start>
|
|
19
|
+
|
|
20
|
+
## New to Pennyfarthing?
|
|
21
|
+
|
|
22
|
+
Start here:
|
|
23
|
+
|
|
24
|
+
1. **`/work`** - Smart entry point (resumes existing work or starts new)
|
|
25
|
+
2. **`/new-work`** - Start a fresh work session from backlog
|
|
26
|
+
3. **`/health-check`** - Verify your installation is working
|
|
27
|
+
|
|
28
|
+
### First Time Setup
|
|
29
|
+
|
|
30
|
+
If Pennyfarthing isn't installed yet:
|
|
31
|
+
```bash
|
|
32
|
+
npx pennyfarthing init
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
</quick-start>
|
|
36
|
+
|
|
37
|
+
<workflow>
|
|
38
|
+
|
|
39
|
+
## TDD Workflow
|
|
40
|
+
|
|
41
|
+
Pennyfarthing uses Test-Driven Development with four core agents:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
SM → TEA → Dev → Reviewer → SM (finish)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
| Phase | Agent | Command | Role |
|
|
48
|
+
|-------|-------|---------|------|
|
|
49
|
+
| Setup | SM (Scrum Master) | `/sm` | Story selection, context creation |
|
|
50
|
+
| RED | TEA (Test Engineer) | `/tea` | Write failing tests |
|
|
51
|
+
| GREEN | Dev (Developer) | `/dev` | Implement to pass tests |
|
|
52
|
+
| Review | Reviewer | `/reviewer` | Code review, quality enforcement |
|
|
53
|
+
| Finish | SM | `/sm` | Merge PR, archive session |
|
|
54
|
+
|
|
55
|
+
### Workflow Commands
|
|
56
|
+
|
|
57
|
+
| Command | Description |
|
|
58
|
+
|---------|-------------|
|
|
59
|
+
| `/new-work` | Start a new work session with Pennyfarthing |
|
|
60
|
+
| `/work` | Resume work or start new - smart entry point |
|
|
61
|
+
| `/sm` | Scrum Master - Story coordination and sprint management |
|
|
62
|
+
| `/tea` | Test Engineer/Architect - Test strategy and TDD |
|
|
63
|
+
| `/dev` | Developer - Feature implementation and coding |
|
|
64
|
+
| `/reviewer` | Code Reviewer - Critical code review and quality enforcement |
|
|
65
|
+
| `/check` | Run quality gates (lint, type check, tests) before handoff |
|
|
66
|
+
|
|
67
|
+
</workflow>
|
|
68
|
+
|
|
69
|
+
<agents>
|
|
70
|
+
|
|
71
|
+
## All Agents (24)
|
|
72
|
+
|
|
73
|
+
### TDD Workflow Agents
|
|
74
|
+
|
|
75
|
+
| Agent | Command | Role |
|
|
76
|
+
|-------|---------|------|
|
|
77
|
+
| SM | `/sm` | Scrum Master - Story coordination, sprint management, workflow entry/exit |
|
|
78
|
+
| TEA | `/tea` | Test Engineer - Test strategy, TDD design, RED phase |
|
|
79
|
+
| Dev | `/dev` | Developer - Implementation, feature shipping, GREEN phase |
|
|
80
|
+
| Reviewer | `/reviewer` | Code Reviewer - Quality enforcement, adversarial review |
|
|
81
|
+
|
|
82
|
+
### Specialist Agents
|
|
83
|
+
|
|
84
|
+
| Agent | Command | Role |
|
|
85
|
+
|-------|---------|------|
|
|
86
|
+
| Architect | `/architect` | System Architect - Technical design and architecture |
|
|
87
|
+
| PM | `/pm` | Product Manager - Strategic planning and prioritization |
|
|
88
|
+
| DevOps | `/devops` | DevOps Engineer - Infrastructure and deployment automation |
|
|
89
|
+
| Tech-Writer | `/tech-writer` | Technical Writer - Documentation creation and maintenance |
|
|
90
|
+
| UX-Designer | `/ux-designer` | UX Designer - User experience design and UI patterns |
|
|
91
|
+
| Orchestrator | `/orchestrator` | Orchestrator - Coordinator of all agents and meta operations |
|
|
92
|
+
|
|
93
|
+
</agents>
|
|
94
|
+
|
|
95
|
+
<commands>
|
|
96
|
+
|
|
97
|
+
## All Commands (43)
|
|
98
|
+
|
|
99
|
+
### TDD Workflow (7)
|
|
100
|
+
| Command | Description |
|
|
101
|
+
|---------|-------------|
|
|
102
|
+
| `/new-work` | Start a new work session with Pennyfarthing |
|
|
103
|
+
| `/work` | Resume work or start new - smart entry point |
|
|
104
|
+
| `/sm` | Scrum Master - Story coordination and sprint management |
|
|
105
|
+
| `/tea` | Test Engineer/Architect - Test strategy and TDD |
|
|
106
|
+
| `/dev` | Developer - Feature implementation and coding |
|
|
107
|
+
| `/reviewer` | Code Reviewer - Critical code review and quality enforcement |
|
|
108
|
+
| `/check` | Run quality gates (lint, type check, tests) before handoff |
|
|
109
|
+
|
|
110
|
+
### Specialist Agents (6)
|
|
111
|
+
| Command | Description |
|
|
112
|
+
|---------|-------------|
|
|
113
|
+
| `/architect` | System Architect - Technical design and architecture |
|
|
114
|
+
| `/pm` | Product Manager - Strategic planning and prioritization |
|
|
115
|
+
| `/devops` | DevOps Engineer - Infrastructure and deployment automation |
|
|
116
|
+
| `/tech-writer` | Technical Writer - Documentation creation and maintenance |
|
|
117
|
+
| `/ux-designer` | UX Designer - User experience design and UI patterns |
|
|
118
|
+
| `/orchestrator` | Orchestrator - Coordinator of all agents and meta operations |
|
|
119
|
+
|
|
120
|
+
### Sprint & Planning (5)
|
|
121
|
+
| Command | Description |
|
|
122
|
+
|---------|-------------|
|
|
123
|
+
| `/sprint-planning` | Facilitate sprint planning session |
|
|
124
|
+
| `/start-epic` | Start an epic - move to current sprint and generate tech context |
|
|
125
|
+
| `/retro` | Facilitate a sprint retrospective |
|
|
126
|
+
| `/sync-work-with-sprint` | Sync Pennyfarthing work session with unified sprint status |
|
|
127
|
+
| `/sync-epic-to-jira` | Sync Pennyfarthing epic to Jira MSSCI project |
|
|
128
|
+
|
|
129
|
+
### Context & Loading (2)
|
|
130
|
+
| Command | Description |
|
|
131
|
+
|---------|-------------|
|
|
132
|
+
| `/prime` | Load essential project context at agent activation |
|
|
133
|
+
| `/health-check` | Check Pennyfarthing installation health and apply updates |
|
|
134
|
+
|
|
135
|
+
### Theme Management (5)
|
|
136
|
+
| Command | Description |
|
|
137
|
+
|---------|-------------|
|
|
138
|
+
| `/list-themes` | List all available persona themes |
|
|
139
|
+
| `/show-theme` | Show details of a theme including all agent personas |
|
|
140
|
+
| `/set-theme` | Set the active persona theme |
|
|
141
|
+
| `/create-theme` | Create a new custom persona theme |
|
|
142
|
+
| `/theme-maker` | Interactive wizard for creating custom persona themes |
|
|
143
|
+
|
|
144
|
+
### Creative & Brainstorm (4)
|
|
145
|
+
| Command | Description |
|
|
146
|
+
|---------|-------------|
|
|
147
|
+
| `/party-mode` | Free-form creative brainstorming with all agents |
|
|
148
|
+
| `/brainstorm` | Structured problem-solving brainstorm session |
|
|
149
|
+
| `/job-fair` | Discover which characters in a theme excel at each role |
|
|
150
|
+
| `/solo` | Run a single agent on a scenario with absolute rubric scoring |
|
|
151
|
+
|
|
152
|
+
### Benchmarking (2)
|
|
153
|
+
| Command | Description |
|
|
154
|
+
|---------|-------------|
|
|
155
|
+
| `/benchmark` | Compare an agent's performance against a stored baseline |
|
|
156
|
+
| `/benchmark-control` | Create control baseline for a scenario |
|
|
157
|
+
|
|
158
|
+
### Git & Repository (4)
|
|
159
|
+
| Command | Description |
|
|
160
|
+
|---------|-------------|
|
|
161
|
+
| `/repo-status` | Check git status of all project repos |
|
|
162
|
+
| `/git-cleanup` | Clean up git repos by organizing changes into commits/branches |
|
|
163
|
+
| `/create-branches-from-story` | Create feature branches in both repos from a story |
|
|
164
|
+
| `/release` | Merge develop to main and push (optional version bump) |
|
|
165
|
+
|
|
166
|
+
### Utility (4)
|
|
167
|
+
| Command | Description |
|
|
168
|
+
|---------|-------------|
|
|
169
|
+
| `/continue-session` | Resume work from a saved checkpoint after context circuit breaker |
|
|
170
|
+
| `/parallel-work` | Start parallel work in a new worktree |
|
|
171
|
+
| `/update-domain-docs` | Update CLAUDE-*.md domain documentation files |
|
|
172
|
+
| `/help` | This help command |
|
|
173
|
+
|
|
174
|
+
</commands>
|
|
175
|
+
|
|
176
|
+
<themes>
|
|
177
|
+
|
|
178
|
+
## Themes
|
|
179
|
+
|
|
180
|
+
Pennyfarthing agents adopt personas from themed character sets. There are **102 themes** available.
|
|
181
|
+
|
|
182
|
+
### Popular Themes
|
|
183
|
+
|
|
184
|
+
| Theme | Description |
|
|
185
|
+
|-------|-------------|
|
|
186
|
+
| `rome` | Characters from HBO's Rome series |
|
|
187
|
+
| `star-trek-tos` | Original Star Trek series characters |
|
|
188
|
+
| `star-trek-tng` | Star Trek: The Next Generation characters |
|
|
189
|
+
| `discworld` | Terry Pratchett's Discworld characters |
|
|
190
|
+
| `shakespeare` | Shakespearean characters |
|
|
191
|
+
| `jane-austen` | Jane Austen novel characters |
|
|
192
|
+
| `breaking-bad` | Breaking Bad characters |
|
|
193
|
+
| `battlestar-galactica` | Battlestar Galactica characters |
|
|
194
|
+
|
|
195
|
+
Run `/list-themes` to see all 102 available themes.
|
|
196
|
+
|
|
197
|
+
### Theme Commands
|
|
198
|
+
|
|
199
|
+
| Command | Description |
|
|
200
|
+
|---------|-------------|
|
|
201
|
+
| `/list-themes` | See all available themes |
|
|
202
|
+
| `/show-theme` | View current theme with character mappings |
|
|
203
|
+
| `/set-theme <name>` | Change to a different theme |
|
|
204
|
+
| `/create-theme` | Create a custom theme |
|
|
205
|
+
| `/theme-maker` | Interactive theme creation wizard |
|
|
206
|
+
|
|
207
|
+
### Current Theme
|
|
208
|
+
|
|
209
|
+
Check your current theme:
|
|
210
|
+
```bash
|
|
211
|
+
cat .pennyfarthing/config.local.yaml
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
</themes>
|
|
215
|
+
|
|
216
|
+
<context-aware>
|
|
217
|
+
|
|
218
|
+
## Context-Aware Help
|
|
219
|
+
|
|
220
|
+
Based on your current state, here's what you might need:
|
|
221
|
+
|
|
222
|
+
### No Active Session
|
|
223
|
+
- Use `/work` or `/new-work` to begin
|
|
224
|
+
- Check `/health-check` if first time
|
|
225
|
+
|
|
226
|
+
### In Dev Phase
|
|
227
|
+
- Run `/check` before handoff
|
|
228
|
+
- Then `/reviewer` for code review
|
|
229
|
+
|
|
230
|
+
### In Review Phase
|
|
231
|
+
- Reviewer will approve or reject
|
|
232
|
+
- Then `/sm` to finish the story
|
|
233
|
+
|
|
234
|
+
### Between Stories
|
|
235
|
+
- `/work` to pick up next story
|
|
236
|
+
- `/sprint-planning` for planning session
|
|
237
|
+
|
|
238
|
+
</context-aware>
|
|
239
|
+
|
|
240
|
+
<reference>
|
|
241
|
+
|
|
242
|
+
## Documentation
|
|
243
|
+
|
|
244
|
+
- **Project Setup:** `CLAUDE.md`
|
|
245
|
+
- **Sprint Status:** `sprint/current-sprint.yaml`
|
|
246
|
+
- **Active Session:** `.session/*-session.md`
|
|
247
|
+
- **Agent Definitions:** `pennyfarthing-dist/agents/*.md`
|
|
248
|
+
- **Command Definitions:** `pennyfarthing-dist/commands/*.md`
|
|
249
|
+
- **Theme Files:** `pennyfarthing-dist/personas/themes/*.yaml`
|
|
250
|
+
- **Guides:** `.pennyfarthing/guides/*.md`
|
|
251
|
+
|
|
252
|
+
## Getting More Help
|
|
253
|
+
|
|
254
|
+
For detailed help on a specific command, read its definition file:
|
|
255
|
+
```bash
|
|
256
|
+
cat pennyfarthing-dist/commands/<command-name>.md
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
For agent documentation:
|
|
260
|
+
```bash
|
|
261
|
+
cat pennyfarthing-dist/agents/<agent-name>.md
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
</reference>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Discover which characters in a theme excel at each role
|
|
3
|
+
argument-hint: <theme> [--runs N] [--roles <list>]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Job Fair
|
|
7
|
+
|
|
8
|
+
Run every character in a theme against benchmarks to find hidden talents.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/job-fair <theme>
|
|
14
|
+
/job-fair <theme> --runs 2
|
|
15
|
+
/job-fair <theme> --roles dev,reviewer
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## On Invoke
|
|
19
|
+
|
|
20
|
+
**Arguments:** $ARGUMENTS
|
|
21
|
+
|
|
22
|
+
### Step 1: Parse and Validate
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Theme is first positional arg (strip any --flags)
|
|
26
|
+
THEME=$(echo "$ARGUMENTS" | awk '{print $1}' | sed 's/^--theme[= ]//')
|
|
27
|
+
|
|
28
|
+
# Check theme exists
|
|
29
|
+
ls pennyfarthing-dist/personas/themes/${THEME}.yaml
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
If not found, list available themes and stop.
|
|
33
|
+
|
|
34
|
+
Extract `--runs N` (default: 4) and `--roles x,y` (default: all with baselines).
|
|
35
|
+
|
|
36
|
+
### Step 2: Load Characters
|
|
37
|
+
|
|
38
|
+
Read `pennyfarthing-dist/personas/themes/${THEME}.yaml` and list agents:
|
|
39
|
+
|
|
40
|
+
| Role | Character |
|
|
41
|
+
|------|-----------|
|
|
42
|
+
| sm | {agents.sm.character} |
|
|
43
|
+
| dev | {agents.dev.character} |
|
|
44
|
+
| ... | ... |
|
|
45
|
+
|
|
46
|
+
### Step 3: Find Baselines
|
|
47
|
+
|
|
48
|
+
Pick ONE scenario per role from `internal/results/baselines/`:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# For each role, find first available baseline
|
|
52
|
+
for role in dev reviewer tea sm architect; do
|
|
53
|
+
baseline=$(ls -d internal/results/baselines/*/${role} 2>/dev/null | head -1)
|
|
54
|
+
if [ -n "$baseline" ]; then
|
|
55
|
+
scenario=$(basename $(dirname "$baseline"))
|
|
56
|
+
summary="$baseline/summary.yaml"
|
|
57
|
+
# Read statistics.mean and statistics.n from summary.yaml
|
|
58
|
+
fi
|
|
59
|
+
done
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Show table:
|
|
63
|
+
|
|
64
|
+
| Role | Scenario | Baseline | n |
|
|
65
|
+
|------|----------|----------|---|
|
|
66
|
+
| dev | race-condition-cache | 76.8 | 10 |
|
|
67
|
+
|
|
68
|
+
### Step 4: Confirm
|
|
69
|
+
|
|
70
|
+
Show: `{characters} × {roles} × {runs} = {total} runs`
|
|
71
|
+
|
|
72
|
+
Ask user to confirm or cancel.
|
|
73
|
+
|
|
74
|
+
### Step 5: Execute
|
|
75
|
+
|
|
76
|
+
For each role, for each character:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Native role
|
|
80
|
+
scripts/solo-runner.sh "${THEME}:${role}" "${scenario}" ${runs}
|
|
81
|
+
|
|
82
|
+
# Cross-role (character playing different role)
|
|
83
|
+
scripts/solo-runner.sh "${THEME}:${native_role}" "${scenario}" ${runs} --as ${target_role}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Show progress as each completes.
|
|
87
|
+
|
|
88
|
+
### Step 6: Report Results
|
|
89
|
+
|
|
90
|
+
Show champions per role and full matrix:
|
|
91
|
+
|
|
92
|
+
| Character | dev | reviewer | tea | sm | Avg |
|
|
93
|
+
|-----------|-----|----------|-----|-----|-----|
|
|
94
|
+
| ... | ... | ... | ... | ... | ... |
|
|
95
|
+
|
|
96
|
+
Save to `internal/results/job-fair/${THEME}-${timestamp}/summary.yaml`
|
|
97
|
+
|
|
98
|
+
## Reference
|
|
99
|
+
|
|
100
|
+
- Theme files: `pennyfarthing-dist/personas/themes/*.yaml`
|
|
101
|
+
- Baselines: `internal/results/baselines/{scenario}/{role}/summary.yaml`
|
|
102
|
+
- Solo runner: `scripts/solo-runner.sh`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: List all available persona themes
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# List Themes
|
|
6
|
+
|
|
7
|
+
Show all available persona themes with the current theme highlighted.
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
Run the list-themes script and display the output directly to the user:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
$CLAUDE_PROJECT_DIR/pennyfarthing-dist/scripts/list-themes.sh
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**IMPORTANT:** Copy the script output into your response text so the user sees it in the console. Bash tool output may be collapsed in the UI.
|
|
18
|
+
|
|
19
|
+
The output shows:
|
|
20
|
+
- Current theme marked with `*`
|
|
21
|
+
- Tier in brackets: `[S]` elite, `[A]` excellent, `[B]` strong, `[C]` good, `[D]` below average, `[U]` unbenchmarked
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Start the next available story from the sprint backlog
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# New Work
|
|
6
|
+
|
|
7
|
+
<purpose>
|
|
8
|
+
Shortcut to start the highest priority available story. Alias for `/sprint work next`.
|
|
9
|
+
</purpose>
|
|
10
|
+
|
|
11
|
+
<on-invoke>
|
|
12
|
+
Invoke the sprint work command with "next" to auto-select the highest priority story:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/sprint work next
|
|
16
|
+
```
|
|
17
|
+
</on-invoke>
|
|
18
|
+
|
|
19
|
+
<related>
|
|
20
|
+
- `/sprint work` - Interactive story selection
|
|
21
|
+
- `/sprint backlog` - View available stories
|
|
22
|
+
- `/work` - Resume existing work or start new
|
|
23
|
+
</related>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Orchestrator - Coordinator of all agents and meta operations
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
d="$PWD"; while [[ ! -d "$d/.pennyfarthing" ]] && [[ "$d" != "/" ]]; do d="$(dirname "$d")"; done
|
|
7
|
+
export PYTHONPATH="$(dirname "$(dirname "$(cd "$d/.pennyfarthing/scripts" && pwd -P)")"):${PYTHONPATH:-}"
|
|
8
|
+
python3 -m pennyfarthing_scripts.cli agent start "orchestrator"
|
|
9
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Start parallel work in a new worktree
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
d="$PWD"; while [[ ! -d "$d/.pennyfarthing" ]] && [[ "$d" != "/" ]]; do d="$(dirname "$d")"; done
|
|
7
|
+
export PYTHONPATH="$(dirname "$(dirname "$(cd "$d/.pennyfarthing/scripts" && pwd -P)")"):${PYTHONPATH:-}"
|
|
8
|
+
python3 -m pennyfarthing_scripts.cli agent start "sm"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
<parallel-work-flow>
|
|
12
|
+
## Parallel Work Setup
|
|
13
|
+
|
|
14
|
+
Start a new story in a worktree while keeping main checkout intact.
|
|
15
|
+
|
|
16
|
+
### Step 1: Create Worktree
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Get story info from user
|
|
20
|
+
read -p "Story ID (e.g., 5-3a): " STORY_ID
|
|
21
|
+
read -p "Branch name (e.g., feat/5-3a-feature): " BRANCH_NAME
|
|
22
|
+
|
|
23
|
+
# Create worktree
|
|
24
|
+
WORKTREE_NAME="wt-${STORY_ID}"
|
|
25
|
+
.pennyfarthing/scripts/git/worktree-manager.sh create "$WORKTREE_NAME" "$BRANCH_NAME"
|
|
26
|
+
|
|
27
|
+
# Get port configuration
|
|
28
|
+
eval $(.pennyfarthing/scripts/git/worktree-manager.sh ports "$WORKTREE_NAME")
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Step 2: Create Session File
|
|
32
|
+
|
|
33
|
+
Create `.session/${STORY_ID}-session.md` with:
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
# Story ${STORY_ID}: [Title]
|
|
37
|
+
|
|
38
|
+
## Worktree Context
|
|
39
|
+
worktree: ${WORKTREE_NAME}
|
|
40
|
+
path: ${WORKTREE_PATH}
|
|
41
|
+
api_port: ${API_PORT}
|
|
42
|
+
ui_port: ${UI_PORT}
|
|
43
|
+
|
|
44
|
+
## Story Info
|
|
45
|
+
- **Epic:** [from sprint]
|
|
46
|
+
- **Points:** [from sprint]
|
|
47
|
+
- **Repos:** Both
|
|
48
|
+
|
|
49
|
+
## Phase
|
|
50
|
+
sm
|
|
51
|
+
|
|
52
|
+
## Status
|
|
53
|
+
setup
|
|
54
|
+
|
|
55
|
+
## Acceptance Criteria
|
|
56
|
+
- [ ] AC1
|
|
57
|
+
- [ ] AC2
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Step 3: Hand to SM
|
|
61
|
+
|
|
62
|
+
Invoke SM to complete story setup in the worktree context.
|
|
63
|
+
</parallel-work-flow>
|
|
64
|
+
|
|
65
|
+
<agent-activation>
|
|
66
|
+
1. Load persona from theme config → `agents.sm`
|
|
67
|
+
2. Load and follow `.pennyfarthing/agents/sm.md`
|
|
68
|
+
3. SM will detect worktree session and work in that context
|
|
69
|
+
</agent-activation>
|
|
70
|
+
|
|
71
|
+
<agent-exit>
|
|
72
|
+
On exit: Capture learnings to sidecar.
|
|
73
|
+
</agent-exit>
|