allye-pi 1.8.0 → 2.0.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.
Files changed (53) hide show
  1. package/README.md +75 -271
  2. package/bootstrap/allye.md +30 -0
  3. package/docs/install-omp.md +31 -0
  4. package/docs/install-pi.md +21 -125
  5. package/package.json +10 -5
  6. package/packages/allye-pi/src/index.ts +88 -782
  7. package/skills/bridge/SKILL.md +105 -0
  8. package/skills/bridge/references/crew.md +20 -0
  9. package/skills/bridge/references/delegation.md +174 -0
  10. package/skills/bridge/references/discovery.md +71 -0
  11. package/skills/bridge/references/publish.md +90 -0
  12. package/skills/bridge/references/state-contract.md +109 -0
  13. package/skills/bridge/references/workflow.md +132 -0
  14. package/skills/bridge-architect/SKILL.md +96 -0
  15. package/skills/bridge-architect/references/spec-template.md +90 -0
  16. package/skills/bridge-armorer/SKILL.md +103 -0
  17. package/skills/bridge-copilot/SKILL.md +74 -0
  18. package/skills/bridge-dispatcher/SKILL.md +96 -0
  19. package/skills/bridge-dispatcher/references/spec-template-minimal.md +53 -0
  20. package/skills/bridge-medic/SKILL.md +81 -0
  21. package/skills/bridge-optimizer/SKILL.md +68 -0
  22. package/skills/bridge-pilot/SKILL.md +69 -0
  23. package/skills/bridge-pilot/references/mocking.md +57 -0
  24. package/skills/bridge-pilot/references/tdd.md +42 -0
  25. package/skills/bridge-pilot/references/tests.md +60 -0
  26. package/skills/bridge-recon/SKILL.md +82 -0
  27. package/skills/bridge-shield/SKILL.md +73 -0
  28. package/skills/bridge-strategist/SKILL.md +92 -0
  29. package/skills/bridge-watcher/SKILL.md +73 -0
  30. package/skills/agent-runtime/SKILL.md +0 -129
  31. package/skills/agent-runtime/references/herdr.md +0 -184
  32. package/skills/board-progression/SKILL.md +0 -214
  33. package/skills/branch-landing/SKILL.md +0 -88
  34. package/skills/delivery/SKILL.md +0 -187
  35. package/skills/execution/SKILL.md +0 -396
  36. package/skills/handover-protocol/SKILL.md +0 -74
  37. package/skills/handover-protocol/references/correction.md +0 -32
  38. package/skills/handover-protocol/references/discovery-to-planning.md +0 -44
  39. package/skills/handover-protocol/references/execution-report.md +0 -42
  40. package/skills/handover-protocol/references/planning-to-technical.md +0 -42
  41. package/skills/handover-protocol/references/story-execution.md +0 -74
  42. package/skills/handover-protocol/references/technical-to-orchestration.md +0 -45
  43. package/skills/memory-protocol/SKILL.md +0 -319
  44. package/skills/orchestrator/SKILL.md +0 -249
  45. package/skills/product-planning/SKILL.md +0 -257
  46. package/skills/review/SKILL.md +0 -165
  47. package/skills/sandbox/SKILL.md +0 -62
  48. package/skills/setup/SKILL.md +0 -226
  49. package/skills/tdd-workflow/SKILL.md +0 -144
  50. package/skills/technical-planning/SKILL.md +0 -354
  51. package/skills/tools-quickref/SKILL.md +0 -307
  52. package/skills/using-allye/SKILL.md +0 -171
  53. package/skills/verification-loop/SKILL.md +0 -93
@@ -1,171 +0,0 @@
1
- ---
2
- name: using-allye
3
- description: Bootstrap meta-skill for AI agents using the Allye platform. Teaches when and how to use Allye MCP tools with structured workflows. Injected at session start.
4
- version: "1.4"
5
- category: bootstrap
6
- ---
7
-
8
- # Using Allye
9
-
10
- You have access to the **Allye platform** — a project management and knowledge system with 12 MCP tools covering work items, documentation, sprints, boards, memories, skills, and more.
11
-
12
- This skill teaches you **when and how** to use those tools effectively. It does NOT replace the tools — it gives you portable playbooks and proportional guardrails on top of them.
13
-
14
- **Default posture:** Allye is an adaptive toolkit, not a mandatory phase chain. Use Allye MCP, filesystem, subagents, Herdr, work items, and memories when available and useful; degrade honestly when a capability is absent. Recommend traceable tasks for meaningful work, but support an explicitly approved no-task path.
15
-
16
- ---
17
-
18
- ## Language
19
-
20
- These instructions are written in English, but every response, question, suggestion, and confirmation you produce must be in the language the user is actually writing in. **The conversation itself is the primary signal, and it overrides everything else once the user has written anything** — including any `language` field on the user's profile from `initialize`. Only fall back to the profile's `language` field when there's no message yet to go by (e.g. framing your very first proactive line before the user has said anything). If the user switches language mid-conversation, follow them.
21
-
22
- ---
23
-
24
- ## Asking Questions
25
-
26
- When a fork has a small set of nameable options — ownership, approach, scope, or confirmation — prefer the runtime's native structured-question mechanism when one exists. If the runtime has no such tool, ask one focused question in concise prose and make the options explicit. Never silently choose a consequential option.
27
-
28
- **Never bundle an open-ended sub-question with an enumerable one in the same message.** Split them into separate turns. Reserve plain conversational questions for genuinely open-ended forks where enumerating options would require guessing.
29
-
30
- ## 1. Context and Memory Protocol
31
-
32
- Use durable Allye context when the Allye MCP capability is available and the work benefits from continuity. Do not pretend a memory was searched or saved when the capability is unavailable.
33
-
34
- ### On conversation start
35
-
36
- 1. Initialize when available. If it fails, state the limitation and continue with local context unless Allye is required.
37
- 2. Resolve team context proportionally: ask before a team-scoped operation when multiple teams have no active selection; non-team-scoped work may continue.
38
- 3. Search relevant memories when useful, especially for consequential, multi-step, or resumed work.
39
- 4. Distinguish confirmed Allye context, local repository context, and assumptions.
40
- 5. Use subagents or Herdr only when detected and beneficial; never make them prerequisites.
41
-
42
- ### On conversation end (and saving in general)
43
-
44
- Follow the `memory-protocol` skill when Allye memory is available and the context is worth preserving. Save decisions, trade-offs, blockers, and durable session state; do not save trivial noise. Always pass `sector` explicitly. If persistence is unavailable, report the unsaved state rather than implying continuity.
45
-
46
- ---
47
-
48
- ## 2. Skill Routing
49
-
50
- Detect what the user needs and load the right skill. Skills are loaded on-demand — do NOT load all skills at once.
51
-
52
- ### Handover detection (check this FIRST)
53
-
54
- Before running the phase-detection heuristic below, check whether the user's first message contains a `## 🔄 Allye Handover` block (see the `handover-protocol` skill for the full format). If it does:
55
-
56
- 1. Parse the `{type}` from the marker line and the `Skill to load` value.
57
- 2. Resolve it to a backend slug if needed — handover templates always use the bare skill name, but three skills kept their original `allye-*` backend slug through the Plan 1 rename (see the "Slug" column below): `product-planning` → `allye-product-planning`, `technical-planning` → `allye-technical-planning`, `execution` → `allye-technical-development`. Every other value (`orchestrator`, `sandbox`, `handover-protocol`) already matches its backend slug directly.
58
- 3. Load that skill directly via `skill_list`/`skill_get` with the resolved slug — skip the heuristic decision table entirely, there's no ambiguity to resolve.
59
- 4. Treat every field in the handover as authoritative context for this session — locked decisions in particular are non-negotiable unless the user explicitly reopens them.
60
-
61
- If no handover marker is present, fall through to the decision table below as before.
62
-
63
- ### Decision table
64
-
65
- | User intent | Skill to load | Slug |
66
- |-------------|---------------|------|
67
- | Explore ideas, research before committing to scope, think out loud, no direction chosen yet | Sandbox / Discovery | `sandbox` |
68
- | Define product requirements, create epics/features/stories | Product Planning | `allye-product-planning` |
69
- | Plan technical tasks for a story, discuss approach | Technical Planning | `allye-technical-planning` |
70
- | Coordinate delivery of an already-planned feature — assign work, track status, drive tasks through review | Orchestrator | `orchestrator` |
71
- | Implement code, write tests, develop features | Technical Development or a lightweight local implementation loop | `allye-technical-development` when a task/work item exists |
72
- | Review code, check implementation quality | Technical Review | `allye-technical-review` |
73
- | Finalize delivery, close story, update docs | Technical Delivery | `allye-technical-delivery` |
74
-
75
- Three skills sit outside this table because no user request routes to them directly: `verification-loop` is loaded by `execution` when a task is being verified, `agent-runtime` by `orchestrator` when parallel work is being dispatched, and `branch-landing` by `delivery`, `orchestrator`, and `execution` when a branch's work is done. All three load on demand, from the skill that needs them.
76
-
77
- ### How to detect the phase
78
-
79
- - **Sandbox / Discovery** — User wants to: explore ideas, think out loud, research before deciding, hasn't committed to a direction yet
80
- - **Product Planning** — User talks about: requirements, business needs, features, epics, user stories, product scope, MVP
81
- - **Technical Planning** — User has a story and wants to: break it into tasks, discuss approach, evaluate options, plan implementation
82
- - **Orchestrator** — User wants to: coordinate delivery, assign work items, track story/task status, drive review for an already-planned feature
83
- - **Technical Development** — User wants to: write code, implement a task, fix a bug, add functionality, write tests
84
- - **Technical Review** — User wants to: review code, check quality, validate implementation, get feedback
85
- - **Technical Delivery** — User wants to: finish a story, merge, deploy, update documentation, close items
86
-
87
- ### How to load a skill
88
-
89
- Use the Allye MCP `skills` tool. `skill_list` only *lists* skills (metadata, no content) — use it to resolve the slug to an ID, then fetch the actual content with `skill_get`:
90
-
91
- ```
92
- 1. skill_list(query: "{skill-slug}") → find the skill and its ID
93
- 2. skill_get(id: "{skill id}") → returns the full skill content
94
- ```
95
-
96
- (`skill_export` / `skill_export_merged` also return content, formatted for a specific agent — `skill_export_merged` is useful when loading several workflow skills at once.)
97
-
98
- Then read the skill content and follow its instructions. The loaded skill takes priority over this bootstrap for the duration of that workflow.
99
-
100
- ### When no skill matches
101
-
102
- If the user's request doesn't match any workflow phase (e.g., general questions, quick lookups, team management), use the Allye tools directly without loading a specific skill. The tools reference in section 4 gives you a quick overview.
103
-
104
- ### Direct implementation path
105
-
106
- When the user asks for a small or low-risk local change and no task exists, recommend the lightweight execution loop: state scope, get explicit approval to bypass task creation, read first, test and verify, then report. Do not create a task merely because the execution skill exists.
107
-
108
- ---
109
-
110
- ## 3. Adaptive Checkpoints and Guardrails
111
-
112
- There is no universal phase gate. Choose the smallest useful loop for the user's intent:
113
-
114
- `intent → context → research (optional) → decision/consent → action → verification → persistence (optional)`
115
-
116
- Checkpoints may be skipped or repeated. Use this policy:
117
-
118
- - **Low-risk, local, reversible work:** proceed with a concise plan and proportionate verification. Do not create work items merely to satisfy the toolkit.
119
- - **Meaningful, multi-step, delegated, shared, or review-heavy work:** recommend a task or work item for traceability. Explain the benefit and ask for approval before creating it.
120
- - **No-task path:** if the user explicitly approves bypassing task creation, record that choice when useful, keep scope explicit, and verify the result proportionally.
121
- - **Consequential mutations** (external systems, destructive operations, publication, deployment, status changes, or broad scope): obtain explicit consent unless the user already clearly authorized that exact action. Do not create or change work items/statuses without approval.
122
- - **Ambiguity that changes scope, risk, or architecture:** stop and ask. Minor implementation details may use established defaults, stated assumptions, and a reversible change.
123
- - **TDD:** use Red → Green → Refactor when the behavior can be specified as a deterministic example; otherwise test after implementation, but do not skip verification.
124
- - **Done claims:** only claim completion after reading actual verification output and distinguishing implementation evidence from review, deployment, or other pending gates.
125
-
126
- ---
127
-
128
- ## 4. Allye Tools Quick Reference
129
-
130
- | Tool | What it does |
131
- |------|-------------|
132
- | `work_items` | Create, list, update, bulk-create work items (epics, features, stories, tasks, bugs). Move status. |
133
- | `boards` | View boards and columns. Understand status progression. |
134
- | `sprints` | List sprints, get active sprint, view sprint work items. |
135
- | `docs` | Create, read, update documentation. Tree navigation. Publish and version. |
136
- | `intelligence` | Save and search memories (semantic, embedding-based). Core of cross-session continuity. |
137
- | `productivity` | Personal TODOs — create, list, update, delete. Stats, search, categories. |
138
- | `skills` | List, export, install skills. `skill_export_merged` for loading workflow skills. |
139
- | `team` | Switch active team, list teams, check current team. |
140
- | `user_config` | Manage personal configuration documents. |
141
- | `api_catalog` | Search and browse API endpoints documentation. |
142
- | `initialize` | Re-initialize Allye environment and reload documents. |
143
- | `health` | Check Allye backend health status. |
144
-
145
- For detailed parameter reference, load the `allye-tools-quickref` skill.
146
-
147
- ---
148
-
149
- ## 5. Red Flags — Rationalizations to Reject
150
-
151
- If you catch yourself thinking any of these, STOP:
152
-
153
- | Rationalization | Why it's wrong |
154
- |-----------------|---------------|
155
- | "I don't need to search memories, this is a fresh conversation." | For consequential or resumed work, prior context may prevent rework; search when useful and available, but do not pretend an unavailable capability was used. |
156
- | "I'll just start coding, tasks aren't necessary for something this small." | For meaningful work, tasks improve accountability; for small work, use the approved no-task path with explicit scope and verification. |
157
- | "I'll skip the tests, the implementation is straightforward." | Straightforward code still breaks. TDD catches assumptions. Write the test. |
158
- | "I'll move the story to done, the tasks are mostly complete." | "Mostly" is not "done". Verify all tasks are complete first. |
159
- | "I don't need to save memories, I covered everything in the conversation." | Save durable decisions and consequential session state when persistence is available; skip trivial noise and report when persistence is unavailable. |
160
- | "I'll load all skills at once to be prepared." | Skills are loaded on-demand for a reason — loading everything bloats context and degrades quality. Load only what's needed. |
161
-
162
- ---
163
-
164
- ## 6. Subagent Instructions
165
-
166
- <SUBAGENT-STOP>
167
- If you are a subagent (launched via the Agent tool), do NOT load this bootstrap skill.
168
- The parent agent has already loaded it. You should focus on your specific task.
169
- Do NOT search for memories or save session state — the parent agent handles that.
170
- </SUBAGENT-STOP>
171
-
@@ -1,93 +0,0 @@
1
- ---
2
- name: verification-loop
3
- description: Bounded test-fix-test loop that proves a task or story actually works. Use when implementing a task, before reporting anything as done, or when a verification command fails and needs another pass.
4
- version: "1.0"
5
- category: methodology
6
- ---
7
-
8
- # Verification Loop
9
-
10
- <!-- adapted from mattpocock/skills diagnosing-bugs (MIT) — the tight-loop completion criterion and the loop-construction ladder -->
11
-
12
- A task passes its own tests and still does not do what the story asked. Tasks all go green and the feature is broken. Both happen because "done" is asserted from reading code rather than observed from running it.
13
-
14
- This skill defines the loop that observes it. A loop goes **red** on the failure, or it does not — and if it cannot go red, it is not verification, whatever else it is.
15
-
16
- ## 1. What counts as a loop
17
-
18
- A verification command must satisfy all four:
19
-
20
- - [ ] **red-capable** — it catches *this specific failure*. "Runs without erroring" is not the same thing. A command that passes whether or not the acceptance criterion is met verifies nothing.
21
- - [ ] **deterministic** — same verdict every run. A command that depends on wall-clock time, network, or unseeded randomness reports noise.
22
- - [ ] **fast** — seconds. A four-minute command is a build; you will not iterate on it, so it will not function as a loop.
23
- - [ ] **agent-runnable** — runs to a verdict with no human clicking. If a human must act, see §4.
24
-
25
- ## 2. Building one
26
-
27
- Take the first option on this ladder that works. Reach further down only when the ones above genuinely do not apply.
28
-
29
- 1. **An existing test, narrowed** — a single test case naming the criterion. Cheapest and usually correct.
30
- 2. **A new test at an existing seam** — prefer a seam the codebase already tests at over introducing one.
31
- 3. **A CLI invocation with an observable exit code** — a build, a typecheck, a lint, a migration.
32
- 4. **An HTTP call with an asserted response** — `curl` piped through `jq` to an assertion.
33
- 5. **A script that exercises the flow and prints a verdict** — when several of the above must combine.
34
- 6. **A human-verified procedure** — the escape hatch. See §4; it is not a loop, and declaring it changes how the story is dispatched.
35
-
36
- ## 3. Running one
37
-
38
- The cycle is: run → read the actual output → fix → run again.
39
-
40
- **Read the output, do not infer it.** A command whose result you predicted rather than read has told you nothing. This is the same evidence-before-assertions rule the `execution` skill applies before advancing a task, applied per iteration.
41
-
42
- ### The bound
43
-
44
- <HARD-GATE>
45
- Stop on whichever of these comes first:
46
-
47
- 1. **Three attempts on the same failure.**
48
- 2. **Two byte-identical outputs in a row.** Identical output is the previous attempt repeated, not a new one — this ends the loop immediately, before the third attempt.
49
-
50
- On stopping, report `❌ blocked` carrying the command, its literal output, and what is missing. Never a summary of the output — the exact text. The reader decides what it means.
51
- </HARD-GATE>
52
-
53
- Three attempts is the budget for *one* failure, not for the task. A loop that fixes one criterion and then goes red on a different one starts a fresh budget: that is progress, and progress earns another three.
54
-
55
- ## 4. When no loop exists
56
-
57
- Some work admits no command that is red-capable, deterministic, fast, and agent-runnable at once — visual layout, infrastructure provisioning, a one-off migration against production data. Forcing one produces a command that passes unconditionally, which is worse than none: it reports green while verifying nothing.
58
-
59
- Such a task declares, in its description:
60
-
61
- ```
62
- ## Verification
63
- verification: manual
64
- {the exact procedure a human follows, and what they should observe}
65
- ```
66
-
67
- That declaration carries a consequence beyond the task:
68
-
69
- <HARD-GATE>
70
- A task declaring `verification: manual` makes its whole story **HITL** — human in the loop. The Orchestrator does not dispatch a HITL story to an unattended runtime pane. A story whose every task has an automatable command is **AFK** and may be dispatched unattended.
71
-
72
- The label is derived here, at planning time. It is never the Orchestrator's guess.
73
- </HARD-GATE>
74
-
75
- ## 5. Two granularities
76
-
77
- **Per task**, during implementation: run that task's command after each change until it is green. Cheap and local — this is what stops a trivial failure from consuming one of the two correction rounds the Orchestrator allows.
78
-
79
- **Per story**, before reporting anything: run the command that exercises the story's own acceptance criteria end to end. Every task green does not mean the story works; nothing else checks this.
80
-
81
- A red story loop is reported as such even when every task is green. "All tasks passed but the story does not work" is a finding, and a valuable one — it usually means the task breakdown missed an integration.
82
-
83
- ## 6. Relationship to TDD
84
-
85
- Distinct disciplines, easily confused into one:
86
-
87
- | | TDD | Verification loop |
88
- |---|---|---|
89
- | When | During implementation | After, before reporting |
90
- | Unit | One behaviour | One acceptance criterion |
91
- | Shape | Red → Green → Refactor | Run → read → fix → run |
92
-
93
- Where TDD applies, the loop confirms the assembled whole. Where it does not — the "test after, but always test" branch of the detection heuristic in `tdd-workflow` — the loop is the only mechanism that observes the criterion at all, and that is where it earns the most.