@geminix/gxpm 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/AGENTS.md +148 -0
- package/CANON.md +53 -0
- package/CLAUDE.md +60 -0
- package/CONTEXT.md +49 -0
- package/DEBUG.md +59 -0
- package/ISSUE_CONTEXT.md +25 -0
- package/README.md +143 -0
- package/VERSION +1 -0
- package/agents/cleanup-auditor/cleanup-auditor.md +56 -0
- package/agents/grill-master.md +26 -0
- package/agents/implementer.md +32 -0
- package/agents/review-army/accessibility-reviewer.md +54 -0
- package/agents/review-army/code-quality-reviewer.md +54 -0
- package/agents/review-army/security-reviewer.md +56 -0
- package/agents/review-army/spec-compliance-reviewer.md +51 -0
- package/agents/review-army/test-reviewer.md +55 -0
- package/agents/reviewer.md +59 -0
- package/agents/ship-audit-army/docs-auditor.md +53 -0
- package/agents/ship-audit-army/performance-auditor.md +52 -0
- package/agents/ship-audit-army/security-auditor.md +52 -0
- package/agents/specifier.md +55 -0
- package/agents/triage-officer.md +27 -0
- package/bin/gxpm +17 -0
- package/bin/gxpm-browser +17 -0
- package/bin/gxpm-config +15 -0
- package/bin/gxpm-eval +13 -0
- package/bin/gxpm-global-discover +15 -0
- package/bin/gxpm-init +38 -0
- package/bin/gxpm-investigate +194 -0
- package/bin/gxpm-uninstall +15 -0
- package/bin/gxpm-update-check +165 -0
- package/commands/build.md +40 -0
- package/commands/help.md +53 -0
- package/commands/plan.md +34 -0
- package/commands/refine.md +46 -0
- package/commands/review.md +34 -0
- package/commands/ship.md +37 -0
- package/core/ac-check.ts +20 -0
- package/core/agent-runtime.ts +363 -0
- package/core/artifact-validator.ts +151 -0
- package/core/artifacts.ts +313 -0
- package/core/autopilot.ts +250 -0
- package/core/capabilities.ts +779 -0
- package/core/checkpoint.ts +370 -0
- package/core/cleanup.ts +32 -0
- package/core/command-probe.ts +82 -0
- package/core/config.ts +533 -0
- package/core/contracts/behavior-spec.schema.ts +38 -0
- package/core/contracts/converter.ts +61 -0
- package/core/contracts/host.ts +43 -0
- package/core/converters/converter.ts +93 -0
- package/core/converters/index.ts +8 -0
- package/core/converters/managed-artifact.ts +119 -0
- package/core/converters/parser.ts +159 -0
- package/core/converters/template-renderer.ts +35 -0
- package/core/converters/writer.ts +61 -0
- package/core/dag-executor.ts +426 -0
- package/core/dag-loader.ts +292 -0
- package/core/dag-schemas.ts +150 -0
- package/core/dispatch.ts +125 -0
- package/core/evidence.ts +148 -0
- package/core/gate.ts +269 -0
- package/core/hook-engine.ts +566 -0
- package/core/host-probe.ts +64 -0
- package/core/implement.ts +16 -0
- package/core/isolation-errors.ts +174 -0
- package/core/isolation-resolver.ts +921 -0
- package/core/issue-context.ts +381 -0
- package/core/issue-readiness.ts +457 -0
- package/core/issue-sync.ts +427 -0
- package/core/issues.ts +132 -0
- package/core/land.ts +108 -0
- package/core/orchestrator.ts +54 -0
- package/core/phase-artifact.ts +32 -0
- package/core/phase-gates.ts +130 -0
- package/core/phase-rewind.ts +94 -0
- package/core/plan-lint.ts +61 -0
- package/core/plan.ts +77 -0
- package/core/port-allocation.ts +50 -0
- package/core/pr-check.ts +15 -0
- package/core/preset-system/preset-resolver.ts +221 -0
- package/core/project-init-status.ts +127 -0
- package/core/qa.ts +15 -0
- package/core/resilience.ts +165 -0
- package/core/runs.ts +288 -0
- package/core/safe-path.test.ts +80 -0
- package/core/safe-path.ts +60 -0
- package/core/sdd-gate.test.ts +98 -0
- package/core/sdd-gate.ts +134 -0
- package/core/self-review.ts +62 -0
- package/core/session.ts +70 -0
- package/core/ship.ts +86 -0
- package/core/specify.ts +173 -0
- package/core/state.ts +1002 -0
- package/core/template-engine.ts +152 -0
- package/core/template-resolver.test.ts +70 -0
- package/core/template-resolver.ts +156 -0
- package/core/triage.ts +26 -0
- package/core/verify.ts +15 -0
- package/core/wiki-native.ts +2423 -0
- package/core/wiki.ts +27 -0
- package/core/workflow-event-emitter.ts +163 -0
- package/core/workflows/engine.ts +273 -0
- package/core/workflows/expressions.ts +76 -0
- package/core/workflows/index.ts +38 -0
- package/core/workflows/steps/command.ts +43 -0
- package/core/workflows/steps/gate.ts +47 -0
- package/core/workflows/steps/gxpm.ts +44 -0
- package/core/workflows/steps/linear.ts +31 -0
- package/core/workflows/steps/shell.ts +65 -0
- package/core/workflows/types.ts +62 -0
- package/core/workspace-runtime.ts +227 -0
- package/core/worktree-init-steps.ts +647 -0
- package/core/worktree-init.ts +330 -0
- package/core/worktree-owner.ts +143 -0
- package/docs/GXPM_VERIFY.md +98 -0
- package/docs/INSTALL_FOR_AGENTS.md +113 -0
- package/docs/README.md +57 -0
- package/docs/adr/adr-005-multi-platform-skill-converter.md +72 -0
- package/docs/agents/domain.md +30 -0
- package/docs/agents/issue-tracker.md +30 -0
- package/docs/agents/triage-labels.md +32 -0
- package/docs/architecture/gxpm-architecture-diagram.md +265 -0
- package/docs/architecture/gxpm-current-architecture.md +175 -0
- package/docs/architecture/gxpm-current-flow.md +278 -0
- package/docs/architecture/gxpm-replacement-architecture.md +211 -0
- package/docs/architecture/gxpm-target-architecture.md +449 -0
- package/docs/architecture/gxpm-v0-contract.md +311 -0
- package/docs/architecture/layered-workflow-boundaries.md +193 -0
- package/docs/architecture/preset-system.md +126 -0
- package/docs/architecture/scaffold-northstar.md +23 -0
- package/docs/brainstorms/2026-05-14-bdd-then-tdd-design.md +320 -0
- package/docs/brainstorms/README.md +22 -0
- package/docs/brainstorms/docs-knowledge-system-requirements.md +29 -0
- package/docs/governance/beta-skill-promotion.md +39 -0
- package/docs/governance/development-contract.md +144 -0
- package/docs/governance/gherkin-style.md +90 -0
- package/docs/governance/host-adapter.md +56 -0
- package/docs/governance/skill-authoring.md +87 -0
- package/docs/governance/skill-testing.md +356 -0
- package/docs/governance/template-authoring.md +53 -0
- package/docs/migrations/v0.2.md +51 -0
- package/docs/plans/README.md +23 -0
- package/docs/plans/bdd-then-tdd-plan.md +1767 -0
- package/docs/plans/docs-knowledge-system-plan.md +31 -0
- package/docs/plans/spec-kit-sdd-adoption-plan.md +305 -0
- package/docs/research/agents-md-best-practices.md +207 -0
- package/docs/research/archon-study.md +351 -0
- package/docs/research/claude-hooks-study.md +440 -0
- package/docs/research/codex-hooks-study.md +624 -0
- package/docs/research/everything-claude-code-study.md +252 -0
- package/docs/research/from-skills-to-layered-workflow.md +322 -0
- package/docs/research/gsd-study.md +69 -0
- package/docs/research/kimi-hooks-study.md +274 -0
- package/docs/research/mattpocock-skills-comparison.md +429 -0
- package/docs/research/mattpocock-skills-study.md +275 -0
- package/docs/research/oh-my-codex-study.md +279 -0
- package/docs/research/perplexity-agent-skills-design.md +168 -0
- package/docs/research/pmc-gstack-skill-study.md +122 -0
- package/docs/research/spec-kit-study.md +224 -0
- package/docs/research/superpowers-study.md +209 -0
- package/docs/roadmap/initial-roadmap.md +53 -0
- package/docs/solutions/README.md +45 -0
- package/docs/solutions/artifact-nesting-recovery.md +58 -0
- package/docs/solutions/session-context-restore-practice.md +67 -0
- package/docs/solutions/workflow/version-drift-recovery.md +49 -0
- package/docs/solutions/worktree-gate-recovery.md +62 -0
- package/docs/specs/README.md +28 -0
- package/docs/specs/claude.md +45 -0
- package/docs/specs/codex.md +44 -0
- package/docs/specs/cursor.md +44 -0
- package/hosts/adapters/claude.ts +29 -0
- package/hosts/adapters/codex.ts +27 -0
- package/hosts/adapters/cursor.ts +27 -0
- package/hosts/adapters/kimi.ts +27 -0
- package/hosts/claude.ts +23 -0
- package/hosts/codex.ts +26 -0
- package/hosts/cursor.ts +19 -0
- package/hosts/index.ts +33 -0
- package/hosts/registry.test.ts +52 -0
- package/hosts/registry.ts +57 -0
- package/hosts/schema.ts +58 -0
- package/package.json +52 -0
- package/scripts/browser.ts +185 -0
- package/scripts/cleanup.ts +142 -0
- package/scripts/commands/artifact.ts +115 -0
- package/scripts/commands/autopilot.ts +143 -0
- package/scripts/commands/capability.ts +57 -0
- package/scripts/commands/config.ts +69 -0
- package/scripts/commands/dag.ts +126 -0
- package/scripts/commands/feedback.ts +123 -0
- package/scripts/commands/gate.ts +291 -0
- package/scripts/commands/helpers.ts +126 -0
- package/scripts/commands/hook.ts +66 -0
- package/scripts/commands/init.ts +515 -0
- package/scripts/commands/issue.ts +825 -0
- package/scripts/commands/phase.ts +61 -0
- package/scripts/commands/preset.ts +159 -0
- package/scripts/commands/runtime.ts +199 -0
- package/scripts/commands/specify.ts +71 -0
- package/scripts/commands/upgrade.ts +243 -0
- package/scripts/commands/verify.ts +183 -0
- package/scripts/commands/wiki.ts +242 -0
- package/scripts/commands/workflow.ts +131 -0
- package/scripts/dev-skill.ts +55 -0
- package/scripts/discover-skills.ts +116 -0
- package/scripts/doctor.ts +410 -0
- package/scripts/dogfood-check.ts +125 -0
- package/scripts/eval-functional.ts +218 -0
- package/scripts/eval.ts +246 -0
- package/scripts/gen-skill-docs.ts +201 -0
- package/scripts/global-discover.ts +217 -0
- package/scripts/governance-check.ts +75 -0
- package/scripts/gxpm-check.ts +12 -0
- package/scripts/gxpm.ts +216 -0
- package/scripts/host-config.ts +62 -0
- package/scripts/install-claude-hooks.ts +138 -0
- package/scripts/install-codex-hooks.ts +271 -0
- package/scripts/install-hooks.ts +128 -0
- package/scripts/install-kimi-hooks.ts +92 -0
- package/scripts/install-skill.ts +184 -0
- package/scripts/phase-artifact-commands.ts +100 -0
- package/scripts/post-land-sync.ts +46 -0
- package/scripts/scaffold-check.ts +85 -0
- package/scripts/skill-naming-check.ts +78 -0
- package/scripts/skill-structure-check.ts +157 -0
- package/scripts/skills-lock-check.ts +60 -0
- package/scripts/sync-markdown-artifacts.ts +172 -0
- package/scripts/uninstall.ts +162 -0
- package/scripts/version.ts +47 -0
- package/scripts/wait-pr-ready.ts +407 -0
- package/skills/gxpm/SKILL.md +485 -0
- package/skills/gxpm/SKILL.md.tmpl +422 -0
- package/skills/gxpm/references/CANON.md +53 -0
- package/skills/gxpm/references/key-rules.md +130 -0
- package/skills/gxpm-architecture/SKILL.md +106 -0
- package/skills/gxpm-architecture/references/DEEPENING.md +37 -0
- package/skills/gxpm-architecture/references/INTERFACE-DESIGN.md +44 -0
- package/skills/gxpm-autopilot/SKILL.md +116 -0
- package/skills/gxpm-autopilot/SKILL.md.tmpl +107 -0
- package/skills/gxpm-browser/SKILL.md +105 -0
- package/skills/gxpm-browser/SKILL.md.tmpl +41 -0
- package/skills/gxpm-browser/references/commands.md +43 -0
- package/skills/gxpm-browser/references/evidence-path.md +20 -0
- package/skills/gxpm-build/SKILL.md +78 -0
- package/skills/gxpm-cleanup/SKILL.md +76 -0
- package/skills/gxpm-debug-issue/SKILL.md +39 -0
- package/skills/gxpm-diagnose/SKILL.md +220 -0
- package/skills/gxpm-diagnose/SKILL.md.tmpl +31 -0
- package/skills/gxpm-diagnose/references/feedback-loop.md +34 -0
- package/skills/gxpm-diagnose/references/feedback-loops.md +43 -0
- package/skills/gxpm-diagnose/references/phases.md +60 -0
- package/skills/gxpm-eval/SKILL.md +78 -0
- package/skills/gxpm-explore-codebase/SKILL.md +36 -0
- package/skills/gxpm-explore-codebase/scripts/summarize-communities.ts +51 -0
- package/skills/gxpm-feedback/SKILL.md +122 -0
- package/skills/gxpm-grill/SKILL.md +159 -0
- package/skills/gxpm-grill/SKILL.md.tmpl +77 -0
- package/skills/gxpm-grill/references/documentation-templates.md +56 -0
- package/skills/gxpm-grill/references/process.md +25 -0
- package/skills/gxpm-handoff/SKILL.md +112 -0
- package/skills/gxpm-hygiene/SKILL.md +69 -0
- package/skills/gxpm-implementer/SKILL.md +142 -0
- package/skills/gxpm-implementer/SKILL.md.tmpl +141 -0
- package/skills/gxpm-linear/SKILL.md +282 -0
- package/skills/gxpm-linear/SKILL.md.tmpl +86 -0
- package/skills/gxpm-linear/references/commands.md +75 -0
- package/skills/gxpm-linear/references/workflows.md +120 -0
- package/skills/gxpm-planning/SKILL.md +134 -0
- package/skills/gxpm-prototype/SKILL.md +64 -0
- package/skills/gxpm-refactor-safely/SKILL.md +62 -0
- package/skills/gxpm-review-army/SKILL.md +117 -0
- package/skills/gxpm-review-changes/SKILL.md +36 -0
- package/skills/gxpm-setup/SKILL.md +101 -0
- package/skills/gxpm-specifier/SKILL.md +135 -0
- package/skills/gxpm-tdd/SKILL.md +187 -0
- package/skills/gxpm-tdd/references/interface-design.md +23 -0
- package/skills/gxpm-tdd/references/mocking.md +27 -0
- package/skills/gxpm-tdd/references/red-green-refactor.md +61 -0
- package/skills/gxpm-tdd/references/troubleshooting.md +28 -0
- package/skills/gxpm-tdd/references/workflow.md +50 -0
- package/skills/gxpm-tdd/testing-anti-patterns.tmpl +304 -0
- package/skills/gxpm-triage/SKILL.md +160 -0
- package/skills/gxpm-verify/SKILL.md +107 -0
- package/skills/gxpm-write-skill/SKILL.md +131 -0
- package/skills/gxpm-zoom-out/SKILL.md +69 -0
- package/skills/maintain-hygiene-skills-lock/SKILL.md +54 -0
- package/skills/maintain-hygiene-skills-lock/SKILL.md.tmpl +53 -0
- package/templates/constitution-template.md +63 -0
- package/templates/hooks/gxpm-commit-msg +16 -0
- package/templates/hooks/gxpm-post-checkout +19 -0
- package/templates/hooks/gxpm-post-commit +7 -0
- package/templates/hooks/gxpm-post-merge +29 -0
- package/templates/hooks/gxpm-pre-commit +39 -0
- package/templates/hooks/gxpm-pre-push +33 -0
- package/templates/plan-template.md.tmpl +46 -0
- package/templates/spec-template.md.tmpl +63 -0
- package/templates/specify-stub.tmpl +22 -0
- package/templates/tasks-template.md.tmpl +32 -0
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
# gxpm 目标系统架构图(v1 — Skill 拆分 + Matt 吸收)
|
|
2
|
+
|
|
3
|
+
> 绘制日期:2026-05-02
|
|
4
|
+
> 基于当前 v0 架构的重构目标
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. 设计原则
|
|
9
|
+
|
|
10
|
+
1. **One skill, one responsibility** — 每个 skill 只负责一个工程纪律或一个 phase 簇
|
|
11
|
+
2. **Progressive disclosure** — 宿主只加载当前需要的 skill,不加载全部
|
|
12
|
+
3. **统一生命周期** — 所有 skill(生成的 + 手写的)走同一套 `gen:skill-docs` + `install-skill` 管道
|
|
13
|
+
4. **Host parity** — Codex 和 Claude 获得对等的核心能力,差异仅在于宿主特定的交互模式
|
|
14
|
+
5. **Matt 吸收,gxpm 统一** — 将 Matt Pocock 的纪律融入 gxpm phase gate,不保留平行流程
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 2. 目标分层架构图
|
|
19
|
+
|
|
20
|
+
```mermaid
|
|
21
|
+
graph TB
|
|
22
|
+
subgraph "External Systems"
|
|
23
|
+
LINEAR["Linear<br/>Issue Tracker"]
|
|
24
|
+
GITNEXUS["GitNexus<br/>MCP Server"]
|
|
25
|
+
GIT["Git Repository"]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
subgraph "Host Layer"
|
|
29
|
+
CODEX["Codex CLI<br/>OpenAI"]
|
|
30
|
+
CLAUDE["Claude Code<br/>Anthropic"]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
subgraph "Skill Layer (Unified)"
|
|
34
|
+
direction TB
|
|
35
|
+
|
|
36
|
+
subgraph "Core Runtime"
|
|
37
|
+
SKILL_GXPM["skills/gxpm/<br/>SKILL.md.tmpl<br/>(~150 lines, slim)"]
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
subgraph "Engineering Disciplines<br/>(absorbed from Matt)"
|
|
41
|
+
SKILL_DIAGNOSE["skills/diagnose/<br/>SKILL.md.tmpl<br/>feedback loop → fix"]
|
|
42
|
+
SKILL_GRILL["skills/grill/<br/>SKILL.md.tmpl<br/>alignment + CONTEXT.md"]
|
|
43
|
+
SKILL_TDD["skills/tdd/<br/>SKILL.md.tmpl<br/>red-green-refactor"]
|
|
44
|
+
SKILL_ARCH["skills/architecture/<br/>SKILL.md.tmpl<br/>deepening + seams"]
|
|
45
|
+
SKILL_PLANNING["skills/planning/<br/>SKILL.md.tmpl<br/>PRD + vertical slices"]
|
|
46
|
+
SKILL_TRIAGE["skills/triage/<br/>SKILL.md.tmpl<br/>state machine + briefs"]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
subgraph "Code Intelligence<br/>(GitNexus-backed)"
|
|
50
|
+
SKILL_DEBUG["skills/gxpm-debug-issue/<br/>SKILL.md"]
|
|
51
|
+
SKILL_EXPLORE["skills/gxpm-explore-codebase/<br/>SKILL.md"]
|
|
52
|
+
SKILL_REFACTOR["skills/gxpm-refactor-safely/<br/>SKILL.md"]
|
|
53
|
+
SKILL_REVIEW["skills/gxpm-review-changes/<br/>SKILL.md"]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
subgraph "Skill Toolchain"
|
|
58
|
+
DISCOVER["scripts/discover-skills.ts<br/>recursive discovery"]
|
|
59
|
+
GEN["scripts/gen-skill-docs.ts<br/>renderTemplate()"]
|
|
60
|
+
INST["scripts/install-skill.ts<br/>batch install"]
|
|
61
|
+
DEV["scripts/dev-skill.ts<br/>watch all templates"]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
subgraph "Hook Layer"
|
|
65
|
+
GIT_HOOKS[".githooks/<br/>pre-commit, commit-msg,<br/>pre-push, post-merge"]
|
|
66
|
+
CODEX_HOOKS[".codex/hooks/<br/>SessionStart,<br/>UserPromptSubmit"]
|
|
67
|
+
GIT_GUARD[".codex/hooks/<br/>PreToolUse<br/>block dangerous git"]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
subgraph "CLI Layer (bin/)"
|
|
71
|
+
CLI_MAIN["gxpm<br/>main CLI"]
|
|
72
|
+
CLI_INIT["gxpm-init<br/>install all skills + hooks"]
|
|
73
|
+
CLI_INV["gxpm-investigate<br/>browser evidence"]
|
|
74
|
+
CLI_CFG["gxpm-config<br/>config mgmt"]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
subgraph "Core Runtime (core/)"
|
|
78
|
+
direction TB
|
|
79
|
+
|
|
80
|
+
subgraph "Issue & State"
|
|
81
|
+
ISSUES["issues.ts"]
|
|
82
|
+
STATE["state.ts"]
|
|
83
|
+
SESSION["session.ts"]
|
|
84
|
+
CHECKPOINT["checkpoint.ts"]
|
|
85
|
+
RUNS["runs.ts"]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
subgraph "Phase Engine"
|
|
89
|
+
PHASE_GATES["phase-gates.ts"]
|
|
90
|
+
PHASE_ART["phase-artifact.ts"]
|
|
91
|
+
TRIAGE["triage.ts"]
|
|
92
|
+
PLAN["plan.ts"]
|
|
93
|
+
DISPATCH["dispatch.ts"]
|
|
94
|
+
IMPLEMENT["implement.ts"]
|
|
95
|
+
AC_CHECK["ac-check.ts"]
|
|
96
|
+
SELF_REVIEW["self-review.ts"]
|
|
97
|
+
SHIP["ship.ts"]
|
|
98
|
+
PR_CHECK["pr-check.ts"]
|
|
99
|
+
VERIFY["verify.ts"]
|
|
100
|
+
QA["qa.ts"]
|
|
101
|
+
LAND["land.ts"]
|
|
102
|
+
GATE["gate.ts"]
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
subgraph "Workspace & Orchestration"
|
|
106
|
+
WORKSPACE["workspace-runtime.ts"]
|
|
107
|
+
ORCH["orchestrator.ts"]
|
|
108
|
+
READINESS["issue-readiness.ts"]
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
subgraph "Artifact & Evidence"
|
|
112
|
+
ARTIFACTS["artifacts.ts"]
|
|
113
|
+
EVIDENCE["evidence.ts"]
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
subgraph "Knowledge & Wiki"
|
|
117
|
+
WIKI["wiki.ts"]
|
|
118
|
+
WIKI_NATIVE["wiki-native.ts"]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
subgraph "Config & Capabilities"
|
|
122
|
+
CONFIG["config.ts"]
|
|
123
|
+
CAPS["capabilities.ts"]
|
|
124
|
+
PROBE["command-probe.ts"]
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
subgraph "Storage Layer (.gxpm/)"
|
|
129
|
+
ISSUE_STATE[".gxpm/issues/<id>/"]
|
|
130
|
+
LOCAL_RUN[".gxpm/local/"]
|
|
131
|
+
WIKI_STORE[".gxpm/wiki/"]
|
|
132
|
+
CONFIG_STORE[".gxpm/config.json"]
|
|
133
|
+
OOS_STORE[".gxpm/out-of-scope/<br/>(new)"]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
subgraph "Project Docs"
|
|
137
|
+
CONTEXT["CONTEXT.md<br/>(new: shared language)"]
|
|
138
|
+
ADRS["docs/adr/<br/>(architecture decisions)"]
|
|
139
|
+
AGENTS["AGENTS.md<br/>(rules only)"]
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
%% Unified Skill Discovery & Generation
|
|
143
|
+
DISCOVER --> |"find all<br/>SKILL.md.tmpl + SKILL.md"| GEN
|
|
144
|
+
SKILL_GXPM --> GEN
|
|
145
|
+
SKILL_DIAGNOSE --> GEN
|
|
146
|
+
SKILL_GRILL --> GEN
|
|
147
|
+
SKILL_TDD --> GEN
|
|
148
|
+
SKILL_ARCH --> GEN
|
|
149
|
+
SKILL_PLANNING --> GEN
|
|
150
|
+
SKILL_TRIAGE --> GEN
|
|
151
|
+
|
|
152
|
+
GEN --> |"generated output"| INST
|
|
153
|
+
INST --> |"install to host"| CODEX
|
|
154
|
+
INST --> |"install to host"| CLAUDE
|
|
155
|
+
DEV --> |"watch all templates"| DISCOVER
|
|
156
|
+
|
|
157
|
+
%% Host loads skills on demand
|
|
158
|
+
CODEX --> |"loads by phase"| SKILL_GXPM
|
|
159
|
+
CODEX --> |"loads by intent"| SKILL_DIAGNOSE
|
|
160
|
+
CODEX --> |"loads by intent"| SKILL_GRILL
|
|
161
|
+
CODEX --> |"loads by intent"| SKILL_TDD
|
|
162
|
+
CODEX --> |"loads by intent"| SKILL_ARCH
|
|
163
|
+
CODEX --> |"loads by intent"| SKILL_PLANNING
|
|
164
|
+
CODEX --> |"loads by intent"| SKILL_TRIAGE
|
|
165
|
+
|
|
166
|
+
CLAUDE --> |"loads by phase"| SKILL_GXPM
|
|
167
|
+
CLAUDE --> |"loads by intent"| SKILL_DIAGNOSE
|
|
168
|
+
CLAUDE --> |"loads by intent"| SKILL_GRILL
|
|
169
|
+
CLAUDE --> |"loads by intent"| SKILL_TDD
|
|
170
|
+
CLAUDE --> |"loads by intent"| SKILL_ARCH
|
|
171
|
+
CLAUDE --> |"loads by intent"| SKILL_PLANNING
|
|
172
|
+
CLAUDE --> |"loads by intent"| SKILL_TRIAGE
|
|
173
|
+
CLAUDE --> |"loads by intent"| SKILL_DEBUG
|
|
174
|
+
CLAUDE --> |"loads by intent"| SKILL_EXPLORE
|
|
175
|
+
CLAUDE --> |"loads by intent"| SKILL_REFACTOR
|
|
176
|
+
CLAUDE --> |"loads by intent"| SKILL_REVIEW
|
|
177
|
+
|
|
178
|
+
%% Core & Storage
|
|
179
|
+
CLI_MAIN --> ISSUES
|
|
180
|
+
CLI_MAIN --> STATE
|
|
181
|
+
CLI_MAIN --> ARTIFACTS
|
|
182
|
+
CLI_MAIN --> GATE
|
|
183
|
+
CLI_MAIN --> WIKI
|
|
184
|
+
CLI_MAIN --> CONFIG
|
|
185
|
+
|
|
186
|
+
ISSUES --> ISSUE_STATE
|
|
187
|
+
STATE --> ISSUE_STATE
|
|
188
|
+
ARTIFACTS --> ISSUE_STATE
|
|
189
|
+
RUNS --> LOCAL_RUN
|
|
190
|
+
WORKSPACE --> LOCAL_RUN
|
|
191
|
+
WIKI_NATIVE --> WIKI_STORE
|
|
192
|
+
CONFIG --> CONFIG_STORE
|
|
193
|
+
|
|
194
|
+
%% External
|
|
195
|
+
ISSUES -.-> LINEAR
|
|
196
|
+
QODER_MOD -.-> QODER
|
|
197
|
+
ORCH -.-> CODEX
|
|
198
|
+
|
|
199
|
+
%% Hooks
|
|
200
|
+
GIT_HOOKS --> GATE
|
|
201
|
+
CODEX_HOOKS --> STATE
|
|
202
|
+
GIT_GUARD --> |"blocks dangerous<br/>git commands"| CODEX
|
|
203
|
+
|
|
204
|
+
%% Docs
|
|
205
|
+
SKILL_GRILL -.-> |"reads/writes"| CONTEXT
|
|
206
|
+
SKILL_GRILL -.-> |"reads/writes"| ADRS
|
|
207
|
+
SKILL_ARCH -.-> |"reads"| CONTEXT
|
|
208
|
+
SKILL_ARCH -.-> |"reads"| ADRS
|
|
209
|
+
SKILL_TRIAGE -.-> |"reads"| OOS_STORE
|
|
210
|
+
|
|
211
|
+
%% Graph skills use GitNexus MCP
|
|
212
|
+
SKILL_DEBUG -.-> |"MCP"| GITNEXUS
|
|
213
|
+
SKILL_EXPLORE -.-> |"MCP"| GITNEXUS
|
|
214
|
+
SKILL_REFACTOR -.-> |"MCP"| GITNEXUS
|
|
215
|
+
SKILL_REVIEW -.-> |"MCP"| GITNEXUS
|
|
216
|
+
|
|
217
|
+
style SKILL_GXPM fill:#e3f2fd
|
|
218
|
+
style SKILL_DIAGNOSE fill:#e8f5e9
|
|
219
|
+
style SKILL_GRILL fill:#e8f5e9
|
|
220
|
+
style SKILL_TDD fill:#e8f5e9
|
|
221
|
+
style SKILL_ARCH fill:#e8f5e9
|
|
222
|
+
style SKILL_PLANNING fill:#e8f5e9
|
|
223
|
+
style SKILL_TRIAGE fill:#e8f5e9
|
|
224
|
+
style SKILL_DEBUG fill:#fff3e0
|
|
225
|
+
style SKILL_EXPLORE fill:#fff3e0
|
|
226
|
+
style SKILL_REFACTOR fill:#fff3e0
|
|
227
|
+
style SKILL_REVIEW fill:#fff3e0
|
|
228
|
+
style CONTEXT fill:#f3e5f5
|
|
229
|
+
style OOS_STORE fill:#f3e5f5
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## 3. 目标 Skill → Phase 映射
|
|
235
|
+
|
|
236
|
+
```mermaid
|
|
237
|
+
flowchart TB
|
|
238
|
+
subgraph "Skill Registry"
|
|
239
|
+
GXPM["gxpm<br/>(core runtime)"]
|
|
240
|
+
TRIAGE_SKILL["triage<br/>(Matt absorbed)"]
|
|
241
|
+
GRILL["grill<br/>(Matt absorbed)"]
|
|
242
|
+
PLANNING["planning<br/>(Matt absorbed)"]
|
|
243
|
+
TDD["tdd<br/>(Matt absorbed)"]
|
|
244
|
+
DIAGNOSE["diagnose<br/>(Matt + gxpm)"]
|
|
245
|
+
ARCH["architecture<br/>(Matt absorbed)"]
|
|
246
|
+
GITNEXUS_SKILLS["gitnexus<br/>(agent code intelligence)"]
|
|
247
|
+
HUMAN_WIKI["gxpm wiki<br/>(optional human docs)"]
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
subgraph "Phase Pipeline"
|
|
251
|
+
TRIAGE["1. triage"]
|
|
252
|
+
PLAN["2. plan"]
|
|
253
|
+
DISPATCH["3. dispatch"]
|
|
254
|
+
IMPLEMENT["4. implement"]
|
|
255
|
+
LOCAL_VERIFY["5. local-verify"]
|
|
256
|
+
AC_CHECK["6. ac-check"]
|
|
257
|
+
SELF_REVIEW["7. self-review"]
|
|
258
|
+
SHIP["8. ship"]
|
|
259
|
+
PR_CHECK["9. pr-check"]
|
|
260
|
+
VERIFY["10. verify"]
|
|
261
|
+
QA["11. qa"]
|
|
262
|
+
LAND["12. land"]
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
GXPM --> TRIAGE
|
|
266
|
+
GXPM --> PLAN
|
|
267
|
+
GXPM --> DISPATCH
|
|
268
|
+
GXPM --> IMPLEMENT
|
|
269
|
+
GXPM --> LOCAL_VERIFY
|
|
270
|
+
GXPM --> AC_CHECK
|
|
271
|
+
GXPM --> SELF_REVIEW
|
|
272
|
+
GXPM --> SHIP
|
|
273
|
+
GXPM --> PR_CHECK
|
|
274
|
+
GXPM --> VERIFY
|
|
275
|
+
GXPM --> QA
|
|
276
|
+
GXPM --> LAND
|
|
277
|
+
|
|
278
|
+
TRIAGE_SKILL --> TRIAGE
|
|
279
|
+
GRILL --> TRIAGE
|
|
280
|
+
GRILL --> PLAN
|
|
281
|
+
PLANNING --> PLAN
|
|
282
|
+
TDD --> IMPLEMENT
|
|
283
|
+
DIAGNOSE --> IMPLEMENT
|
|
284
|
+
DIAGNOSE --> QA
|
|
285
|
+
ARCH --> SELF_REVIEW
|
|
286
|
+
ARCH --> LAND
|
|
287
|
+
GITNEXUS_SKILLS -.-> IMPLEMENT
|
|
288
|
+
GITNEXUS_SKILLS -.-> SELF_REVIEW
|
|
289
|
+
GITNEXUS_SKILLS -.-> PR_CHECK
|
|
290
|
+
HUMAN_WIKI -.-> TRIAGE
|
|
291
|
+
HUMAN_WIKI -.-> PLAN
|
|
292
|
+
|
|
293
|
+
style GXPM fill:#e3f2fd
|
|
294
|
+
style TRIAGE_SKILL fill:#e8f5e9
|
|
295
|
+
style GRILL fill:#e8f5e9
|
|
296
|
+
style PLANNING fill:#e8f5e9
|
|
297
|
+
style TDD fill:#e8f5e9
|
|
298
|
+
style DIAGNOSE fill:#e8f5e9
|
|
299
|
+
style ARCH fill:#e8f5e9
|
|
300
|
+
style HUMAN_WIKI fill:#f3e5f5
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
### 映射规则
|
|
304
|
+
|
|
305
|
+
| Phase | 主 Skill | 辅助 Skill | 职责分工 |
|
|
306
|
+
|-------|---------|-----------|---------|
|
|
307
|
+
| triage | `gxpm` + `triage` | `grill` | gxpm 管 gate,triage 管状态机,grill 管术语对齐 |
|
|
308
|
+
| plan | `gxpm` + `planning` | `grill` | gxpm 管 artifact,planning 管 PRD/切片,grill 管决策记录 |
|
|
309
|
+
| dispatch | `gxpm` | — | worktree、handoff、claim |
|
|
310
|
+
| implement | `gxpm` + `tdd` + `diagnose` | `architecture` | gxpm 管执行,tdd 管测试纪律,diagnose 管调试 |
|
|
311
|
+
| local-verify | `gxpm` | `tdd` | 回归测试验证 |
|
|
312
|
+
| ac-check | `gxpm` | — | 验收合约检查 |
|
|
313
|
+
| self-review | `gxpm` + `architecture` | `gxpm-review-changes` | 代码审查 + 架构审视 |
|
|
314
|
+
| ship | `gxpm` | — | PR 准备 |
|
|
315
|
+
| pr-check | `gxpm` | `gxpm-review-changes` | PR 风险评审 |
|
|
316
|
+
| verify | `gxpm` | — | 独立验证 |
|
|
317
|
+
| qa | `gxpm` + `diagnose` | `gxpm-debug-issue` | bug 调试 + 图谱诊断 |
|
|
318
|
+
| land | `gxpm` + `architecture` | — | 清理 + 架构复盘建议 |
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## 4. 目标 Skill 生命周期(批量管道)
|
|
323
|
+
|
|
324
|
+
```mermaid
|
|
325
|
+
flowchart LR
|
|
326
|
+
subgraph "Source (skills/)"
|
|
327
|
+
TMPL_GXPM["skills/gxpm/<br/>SKILL.md.tmpl"]
|
|
328
|
+
TMPL_DIAGNOSE["skills/diagnose/<br/>SKILL.md.tmpl"]
|
|
329
|
+
TMPL_GRILL["skills/grill/<br/>SKILL.md.tmpl"]
|
|
330
|
+
TMPL_TDD["skills/tdd/<br/>SKILL.md.tmpl"]
|
|
331
|
+
TMPL_ARCH["skills/architecture/<br/>SKILL.md.tmpl"]
|
|
332
|
+
TMPL_PLANNING["skills/planning/<br/>SKILL.md.tmpl"]
|
|
333
|
+
TMPL_TRIAGE["skills/triage/<br/>SKILL.md.tmpl"]
|
|
334
|
+
STATIC_DEBUG["skills/gxpm-debug-issue/<br/>SKILL.md"]
|
|
335
|
+
STATIC_EXPLORE["skills/gxpm-explore-codebase/<br/>SKILL.md"]
|
|
336
|
+
STATIC_REFACTOR["skills/gxpm-refactor-safely/<br/>SKILL.md"]
|
|
337
|
+
STATIC_REVIEW["skills/gxpm-review-changes/<br/>SKILL.md"]
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
subgraph "Generation"
|
|
341
|
+
DISCOVER["discover-skills.ts<br/>find .tmpl + .md"]
|
|
342
|
+
GEN["gen-skill-docs.ts<br/>render templates"]
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
subgraph "Generated Output"
|
|
346
|
+
OUT_GXPM["skills/gxpm/<br/>SKILL.md"]
|
|
347
|
+
OUT_DIAGNOSE["skills/diagnose/<br/>SKILL.md"]
|
|
348
|
+
OUT_GRILL["skills/grill/<br/>SKILL.md"]
|
|
349
|
+
OUT_TDD["skills/tdd/<br/>SKILL.md"]
|
|
350
|
+
OUT_ARCH["skills/architecture/<br/>SKILL.md"]
|
|
351
|
+
OUT_PLANNING["skills/planning/<br/>SKILL.md"]
|
|
352
|
+
OUT_TRIAGE["skills/triage/<br/>SKILL.md"]
|
|
353
|
+
OUT_DEBUG["skills/gxpm-debug-issue/<br/>SKILL.md<br/>(passthrough)"]
|
|
354
|
+
OUT_EXPLORE["skills/gxpm-explore-codebase/<br/>SKILL.md<br/>(passthrough)"]
|
|
355
|
+
OUT_REFACTOR["skills/gxpm-refactor-safely/<br/>SKILL.md<br/>(passthrough)"]
|
|
356
|
+
OUT_REVIEW["skills/gxpm-review-changes/<br/>SKILL.md<br/>(passthrough)"]
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
subgraph "Install"
|
|
360
|
+
INST["install-skill.ts<br/>batch copy per host"]
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
subgraph "Target Hosts"
|
|
364
|
+
CODEX["~/.codex/skills/<br/>gxpm/<br/>diagnose/<br/>grill/<br/>tdd/<br/>..."]
|
|
365
|
+
CLAUDE["~/.claude/skills/<br/>gxpm/<br/>diagnose/<br/>grill/<br/>graph/..."]
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
TMPL_GXPM --> DISCOVER
|
|
369
|
+
TMPL_DIAGNOSE --> DISCOVER
|
|
370
|
+
TMPL_GRILL --> DISCOVER
|
|
371
|
+
TMPL_TDD --> DISCOVER
|
|
372
|
+
TMPL_ARCH --> DISCOVER
|
|
373
|
+
TMPL_PLANNING --> DISCOVER
|
|
374
|
+
TMPL_TRIAGE --> DISCOVER
|
|
375
|
+
STATIC_DEBUG --> DISCOVER
|
|
376
|
+
STATIC_EXPLORE --> DISCOVER
|
|
377
|
+
STATIC_REFACTOR --> DISCOVER
|
|
378
|
+
STATIC_REVIEW --> DISCOVER
|
|
379
|
+
|
|
380
|
+
DISCOVER --> GEN
|
|
381
|
+
GEN --> OUT_GXPM
|
|
382
|
+
GEN --> OUT_DIAGNOSE
|
|
383
|
+
GEN --> OUT_GRILL
|
|
384
|
+
GEN --> OUT_TDD
|
|
385
|
+
GEN --> OUT_ARCH
|
|
386
|
+
GEN --> OUT_PLANNING
|
|
387
|
+
GEN --> OUT_TRIAGE
|
|
388
|
+
GEN --> OUT_DEBUG
|
|
389
|
+
GEN --> OUT_EXPLORE
|
|
390
|
+
GEN --> OUT_REFACTOR
|
|
391
|
+
GEN --> OUT_REVIEW
|
|
392
|
+
|
|
393
|
+
OUT_GXPM --> INST
|
|
394
|
+
OUT_DIAGNOSE --> INST
|
|
395
|
+
OUT_GRILL --> INST
|
|
396
|
+
OUT_TDD --> INST
|
|
397
|
+
OUT_ARCH --> INST
|
|
398
|
+
OUT_PLANNING --> INST
|
|
399
|
+
OUT_TRIAGE --> INST
|
|
400
|
+
OUT_DEBUG --> INST
|
|
401
|
+
OUT_EXPLORE --> INST
|
|
402
|
+
OUT_REFACTOR --> INST
|
|
403
|
+
OUT_REVIEW --> INST
|
|
404
|
+
|
|
405
|
+
INST --> CODEX
|
|
406
|
+
INST --> CLAUDE
|
|
407
|
+
|
|
408
|
+
style DISCOVER fill:#e3f2fd
|
|
409
|
+
style GEN fill:#e3f2fd
|
|
410
|
+
style INST fill:#e3f2fd
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## 5. 目标 vs 当前:变更摘要
|
|
416
|
+
|
|
417
|
+
| 维度 | 当前 v0 | 目标 v1 |
|
|
418
|
+
|------|---------|---------|
|
|
419
|
+
| **Skill 数量** | 1 大 skill + 4 孤儿 | 1 核心 + 6 工程纪律 + 4 图谱 = 11 独立 skill |
|
|
420
|
+
| **Skill 管理** | 两套体系(生成 vs 手写) | 统一管道:所有 skill 走 `discover` → `gen` → `install` |
|
|
421
|
+
| **主 skill 大小** | 673 行 | ~150 行(只保留核心运行时) |
|
|
422
|
+
| **术语管理** | AGENTS.md 静态 | AGENTS.md + CONTEXT.md 动态维护 |
|
|
423
|
+
| **Out-of-scope** | 无 | `.gxpm/out-of-scope/` 知识库 |
|
|
424
|
+
| **调试** | 图谱导航(Claude only) | diagnose skill:反馈循环纪律 + 图谱导航(双宿主) |
|
|
425
|
+
| **TDD** | 无明确纪律 | tdd skill:垂直切片 + 红绿重构 |
|
|
426
|
+
| **架构审视** | 无 | architecture skill:deletion test + deepening |
|
|
427
|
+
| **Git 防护** | git hooks only | git hooks + PreToolUse guard(Matt 吸收) |
|
|
428
|
+
| **安装命令** | `gxpm-init --install-skill --host all` | `gxpm-init --install-skills --host all`(批量) |
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## 6. 实施阶段(与代码重构对应)
|
|
433
|
+
|
|
434
|
+
```mermaid
|
|
435
|
+
flowchart LR
|
|
436
|
+
P1["Phase 1<br/>脚本层扩展<br/>support batch"]
|
|
437
|
+
P2["Phase 2<br/>收敛 GitNexus skill<br/>skills/gxpm-*"]
|
|
438
|
+
P3["Phase 3<br/>创建新 skill<br/>diagnose/grill/tdd/arch/planning/triage"]
|
|
439
|
+
P4["Phase 4<br/>主 skill 瘦身<br/>gxpm ~150 lines"]
|
|
440
|
+
P5["Phase 5<br/>文档层建设<br/>CONTEXT.md + ADR + out-of-scope"]
|
|
441
|
+
|
|
442
|
+
P1 --> P2 --> P3 --> P4 --> P5
|
|
443
|
+
|
|
444
|
+
style P1 fill:#e3f2fd
|
|
445
|
+
style P2 fill:#e8f5e9
|
|
446
|
+
style P3 fill:#fff3e0
|
|
447
|
+
style P4 fill:#fce4ec
|
|
448
|
+
style P5 fill:#f3e5f5
|
|
449
|
+
```
|