@imolko/ultra-agent 0.1.0-beta

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 (239) hide show
  1. package/README.md +93 -0
  2. package/bin/cli.js +2 -0
  3. package/dist-node/bin.d.ts +2 -0
  4. package/dist-node/bin.d.ts.map +1 -0
  5. package/dist-node/bin.js +5 -0
  6. package/dist-node/bin.js.map +1 -0
  7. package/dist-node/cli.d.ts +41 -0
  8. package/dist-node/cli.d.ts.map +1 -0
  9. package/dist-node/cli.js +170 -0
  10. package/dist-node/cli.js.map +1 -0
  11. package/dist-node/index.d.ts +14 -0
  12. package/dist-node/index.d.ts.map +1 -0
  13. package/dist-node/index.js +40 -0
  14. package/dist-node/index.js.map +1 -0
  15. package/dist-node/init-lint.d.ts +43 -0
  16. package/dist-node/init-lint.d.ts.map +1 -0
  17. package/dist-node/init-lint.js +84 -0
  18. package/dist-node/init-lint.js.map +1 -0
  19. package/dist-node/manifest.d.ts +33 -0
  20. package/dist-node/manifest.d.ts.map +1 -0
  21. package/dist-node/manifest.js +59 -0
  22. package/dist-node/manifest.js.map +1 -0
  23. package/dist-node/materializer.d.ts +52 -0
  24. package/dist-node/materializer.d.ts.map +1 -0
  25. package/dist-node/materializer.js +194 -0
  26. package/dist-node/materializer.js.map +1 -0
  27. package/dist-node/package-root.d.ts +5 -0
  28. package/dist-node/package-root.d.ts.map +1 -0
  29. package/dist-node/package-root.js +17 -0
  30. package/dist-node/package-root.js.map +1 -0
  31. package/dist-node/payload.d.ts +22 -0
  32. package/dist-node/payload.d.ts.map +1 -0
  33. package/dist-node/payload.js +49 -0
  34. package/dist-node/payload.js.map +1 -0
  35. package/dist-node/pointer-hub.d.ts +22 -0
  36. package/dist-node/pointer-hub.d.ts.map +1 -0
  37. package/dist-node/pointer-hub.js +50 -0
  38. package/dist-node/pointer-hub.js.map +1 -0
  39. package/dist-node/publication.cli.d.ts +9 -0
  40. package/dist-node/publication.cli.d.ts.map +1 -0
  41. package/dist-node/publication.cli.js +17 -0
  42. package/dist-node/publication.cli.js.map +1 -0
  43. package/dist-node/publication.d.ts +23 -0
  44. package/dist-node/publication.d.ts.map +1 -0
  45. package/dist-node/publication.js +47 -0
  46. package/dist-node/publication.js.map +1 -0
  47. package/dist-node/reconcile.cli.d.ts +11 -0
  48. package/dist-node/reconcile.cli.d.ts.map +1 -0
  49. package/dist-node/reconcile.cli.js +39 -0
  50. package/dist-node/reconcile.cli.js.map +1 -0
  51. package/dist-node/reconcile.d.ts +30 -0
  52. package/dist-node/reconcile.d.ts.map +1 -0
  53. package/dist-node/reconcile.js +51 -0
  54. package/dist-node/reconcile.js.map +1 -0
  55. package/dist-node/ship/prompts/fix.md +22 -0
  56. package/dist-node/ship/prompts/implement.md +34 -0
  57. package/dist-node/ship/prompts/review.md +28 -0
  58. package/dist-node/ship/ship.agent.d.ts +22 -0
  59. package/dist-node/ship/ship.agent.d.ts.map +1 -0
  60. package/dist-node/ship/ship.agent.js +142 -0
  61. package/dist-node/ship/ship.agent.js.map +1 -0
  62. package/dist-node/ship/ship.args.d.ts +15 -0
  63. package/dist-node/ship/ship.args.d.ts.map +1 -0
  64. package/dist-node/ship/ship.args.js +93 -0
  65. package/dist-node/ship/ship.args.js.map +1 -0
  66. package/dist-node/ship/ship.context.d.ts +12 -0
  67. package/dist-node/ship/ship.context.d.ts.map +1 -0
  68. package/dist-node/ship/ship.context.js +3 -0
  69. package/dist-node/ship/ship.context.js.map +1 -0
  70. package/dist-node/ship/ship.d.ts +4 -0
  71. package/dist-node/ship/ship.d.ts.map +1 -0
  72. package/dist-node/ship/ship.js +221 -0
  73. package/dist-node/ship/ship.js.map +1 -0
  74. package/dist-node/ship/ship.mr.d.ts +9 -0
  75. package/dist-node/ship/ship.mr.d.ts.map +1 -0
  76. package/dist-node/ship/ship.mr.js +171 -0
  77. package/dist-node/ship/ship.mr.js.map +1 -0
  78. package/dist-node/ship/ship.output.d.ts +9 -0
  79. package/dist-node/ship/ship.output.d.ts.map +1 -0
  80. package/dist-node/ship/ship.output.js +21 -0
  81. package/dist-node/ship/ship.output.js.map +1 -0
  82. package/dist-node/ship/ship.tracker.d.ts +37 -0
  83. package/dist-node/ship/ship.tracker.d.ts.map +1 -0
  84. package/dist-node/ship/ship.tracker.js +220 -0
  85. package/dist-node/ship/ship.tracker.js.map +1 -0
  86. package/dist-node/version.cli.d.ts +9 -0
  87. package/dist-node/version.cli.d.ts.map +1 -0
  88. package/dist-node/version.cli.js +30 -0
  89. package/dist-node/version.cli.js.map +1 -0
  90. package/dist-node/version.d.ts +24 -0
  91. package/dist-node/version.d.ts.map +1 -0
  92. package/dist-node/version.js +76 -0
  93. package/dist-node/version.js.map +1 -0
  94. package/docs/adr/ADR-0000-proceso-y-formato-de-adrs.md +115 -0
  95. package/docs/adr/foundational/A-001-clean-architecture-4-capas.md +88 -0
  96. package/docs/adr/foundational/A-002-cqrs-semantico.md +58 -0
  97. package/docs/adr/foundational/A-003-tdd.md +97 -0
  98. package/docs/adr/foundational/A-005-either-return-custom-methods.md +80 -0
  99. package/docs/adr/foundational/A-006-feature-completion-criteria.md +47 -0
  100. package/docs/adr/foundational/A-007-data-contract-fail-fast.md +109 -0
  101. package/docs/adr/foundational/A-008-bounded-context-decomposition.md +130 -0
  102. package/docs/adr/foundational/A-009-use-case-taxonomy.md +99 -0
  103. package/docs/adr/foundational/A-010-propiedad-emision-eventos-dominio.md +95 -0
  104. package/docs/adr/foundational/A-011-characterization-first-refactoring.md +90 -0
  105. package/docs/adr/foundational/A-012-helm-mecanismo-primario-despliegue.md +67 -0
  106. package/docs/adr/foundational/A-013-contrato-settings-unica-fuente-configuracion.md +74 -0
  107. package/docs/adr/foundational/A-014-generacion-artefactos-despliegue-desde-contrato-settings.md +75 -0
  108. package/docs/adr/foundational/A-015-cloudevents-estandar-eventos.md +85 -0
  109. package/docs/adr/foundational/A-016-cicd-gitlab-pipeline-raiz-pipelines-modulares.md +92 -0
  110. package/docs/adr/foundational/A-017-taxonomia-repositorios-librerias-sistemas.md +93 -0
  111. package/docs/adr/foundational/A-018-practicas-build-imagenes-docker.md +85 -0
  112. package/docs/adr/foundational/A-019-convenciones-autoria-helm-charts.md +97 -0
  113. package/docs/adr/foundational/A-020-entorno-desarrollo-estandarizado-devcontainer.md +58 -0
  114. package/docs/adr/foundational/A-022-formato-reporte-tests-ctrf.md +55 -0
  115. package/docs/adr/foundational/A-023-composicion-bloques-prompt-agentes.md +65 -0
  116. package/docs/adr/foundational/A-024-features-slices-verticales-portables.md +41 -0
  117. package/docs/adr/foundational/A-025-anatomia-mecanica-feature-puertos-adaptadores-drivers.md +104 -0
  118. package/docs/adr/foundational/A-026-infraestructura-compartida.md +44 -0
  119. package/docs/adr/foundational/A-027-patron-wiring-entry-point.md +67 -0
  120. package/docs/adr/foundational/A-029-verbos-intencion-metodos-lado-negocio.md +54 -0
  121. package/docs/adr/foundational/A-030-global-development-tooling.md +52 -0
  122. package/docs/adr/foundational/A-031-ubiquitous-language.md +64 -0
  123. package/docs/adr/foundational/A-032-domain-artifact-documentation-format.md +128 -0
  124. package/docs/adr/foundational/A-033-estandar-mensajes-commit.md +127 -0
  125. package/docs/adr/foundational/A-034-canonical-skill-set.md +64 -0
  126. package/docs/adr/foundational/A-035-captura-ideas-reanclaje-candies.md +51 -0
  127. package/docs/adr/foundational/A-036-adopcion-wayfinder-ortogonalidad-labels.md +37 -0
  128. package/docs/adr/foundational/A-037-formalizacion-taxonomia-labels.md +98 -0
  129. package/docs/adr/foundational/A-038-issues-referencian-skills-nombre.md +54 -0
  130. package/docs/adr/foundational/A-039-pipeline-ship-issues-hijos-spec.md +64 -0
  131. package/docs/adr/foundational/A-040-punteros-configuracion-repo-skills.md +44 -0
  132. package/docs/adr/foundational/A-041-estrategia-de-ramas.md +45 -0
  133. package/docs/adr/foundational/A-042-formato-documentos-issue-tracker.md +78 -0
  134. package/docs/adr/foundational/A-043-vocabulario-etiquetas-adrs.md +42 -0
  135. package/docs/adr/foundational/A-044-composicion-funcional-procesos-operaciones.md +44 -0
  136. package/docs/adr/foundational/A-045-guardrails-aplicables-no-directrices.md +48 -0
  137. package/docs/adr/foundational/A-046-metricas-de-forma-y-legibilidad-del-codigo.md +50 -0
  138. package/docs/adr/foundational/A-047-dependencias-explicitas-sin-globales-ambientales.md +40 -0
  139. package/docs/adr/foundational/A-048-cobertura-minima-codigo.md +39 -0
  140. package/docs/adr/foundational/A-049-materializacion-bucle-guardrails-extension-nativa-pi.md +49 -0
  141. package/docs/adr/foundational/A-050-el-caso-de-uso-pide-al-dominio-no-lee-su-representacion.md +50 -0
  142. package/docs/adr/foundational/A-051-orden-imports-por-distancia.md +47 -0
  143. package/docs/adr/foundational/A-052-distribucion-metodologia-paquete-versionado.md +42 -0
  144. package/docs/adr/foundational/A-053-errores-compartidos-entre-features-dos-hogares-por-capa.md +43 -0
  145. package/docs/adr/foundational/A-054-contrato-costura-driver-port-raw-data-canal-error.md +65 -0
  146. package/docs/adr/foundational/index.md +98 -0
  147. package/docs/adr/index.md +19 -0
  148. package/docs/adr/python/P-001-dependencias-por-feature-fastapi-depends.md +63 -0
  149. package/docs/adr/python/P-002-inyeccion-token-por-request-sin-persistirlo.md +35 -0
  150. package/docs/adr/python/P-003-sqlalchemy-async-connection-pooling.md +59 -0
  151. package/docs/adr/python/P-004-serializer-json-custom-modelos-pydantic.md +47 -0
  152. package/docs/adr/python/P-005-patrones-pitfalls-nicegui.md +148 -0
  153. package/docs/adr/python/P-006-convenciones-pytest.md +96 -0
  154. package/docs/adr/python/P-007-ci-python-alineacion-poetry-version-unica.md +55 -0
  155. package/docs/adr/python/P-008-empaquetado-infraestructura-compartida-por-tecnologia.md +38 -0
  156. package/docs/adr/python/index.md +14 -0
  157. package/docs/adr/typescript/T-001-ddd-artifact-validation-zod-primitives.md +136 -0
  158. package/docs/adr/typescript/T-002-test-documentation-jsdoc.md +133 -0
  159. package/docs/adr/typescript/T-003-readme-formatting-domain-artifacts.md +51 -0
  160. package/docs/adr/typescript/T-005-input-optionality-use-case-not-entity.md +130 -0
  161. package/docs/adr/typescript/T-006-small-enums-inlined-zod-regex.md +77 -0
  162. package/docs/adr/typescript/T-007-controller-input-zod-schema.md +79 -0
  163. package/docs/adr/typescript/T-008-expressive-use-case-pipe.md +207 -0
  164. package/docs/adr/typescript/T-009-mdx-brace-escaping.md +80 -0
  165. package/docs/adr/typescript/T-010-stack-tooling-typescript-dominio.md +53 -0
  166. package/docs/adr/typescript/T-011-ultra-reporter-herramienta-canonica-documentacion.md +52 -0
  167. package/docs/adr/typescript/T-012-npm-workspaces-estructura-monorepo-clean-architecture.md +54 -0
  168. package/docs/adr/typescript/T-013-definicion-eventos-versionados-ultra-ddd.md +45 -0
  169. package/docs/adr/typescript/T-014-publicacion-distribucion-librerias-npm-semver.md +53 -0
  170. package/docs/adr/typescript/T-015-method-placement-definition.md +35 -0
  171. package/docs/adr/typescript/T-016-contrato-settings-zod.md +34 -0
  172. package/docs/adr/typescript/T-017-characterization-tests-golden-files.md +39 -0
  173. package/docs/adr/typescript/T-018-procedencia-campos-frontmatter.md +55 -0
  174. package/docs/adr/typescript/T-019-ultra-generator-herramienta-canonica-generacion.md +35 -0
  175. package/docs/adr/typescript/T-020-ultra-settings-herramienta-canonica-exportacion-despliegue.md +36 -0
  176. package/docs/adr/typescript/T-021-pipe-flujo-datos-operadores-semantica-contexto-inmutable.md +105 -0
  177. package/docs/adr/typescript/T-022-construction-is-execution-single-boundary.md +112 -0
  178. package/docs/adr/typescript/T-023-registry-cli-declara-dependencias-reales.md +84 -0
  179. package/docs/adr/typescript/T-024-paquete-ultra-agent-manifiesto-pi-peers-cli.md +39 -0
  180. package/docs/adr/typescript/T-025-publicacion-npm-trusted-publishing-procedencia.md +59 -0
  181. package/docs/adr/typescript/index.md +30 -0
  182. package/eslint/index.mjs +721 -0
  183. package/package.json +94 -0
  184. package/pi/extensions/handoff/README.md +92 -0
  185. package/pi/extensions/handoff/handoff-prompt.txt +9 -0
  186. package/pi/extensions/handoff/index.ts +296 -0
  187. package/pi/extensions/handoff/package.json +12 -0
  188. package/pi/extensions/qa-guardrail/README.md +108 -0
  189. package/pi/extensions/qa-guardrail/adapters/cli.ts +100 -0
  190. package/pi/extensions/qa-guardrail/adapters/eslint.ts +90 -0
  191. package/pi/extensions/qa-guardrail/adapters/registry.ts +45 -0
  192. package/pi/extensions/qa-guardrail/baseline.ts +74 -0
  193. package/pi/extensions/qa-guardrail/cerco.ts +134 -0
  194. package/pi/extensions/qa-guardrail/check.ts +185 -0
  195. package/pi/extensions/qa-guardrail/config.ts +189 -0
  196. package/pi/extensions/qa-guardrail/delta.ts +52 -0
  197. package/pi/extensions/qa-guardrail/feedback.ts +26 -0
  198. package/pi/extensions/qa-guardrail/index.ts +311 -0
  199. package/pi/extensions/qa-guardrail/nstop.ts +82 -0
  200. package/pi/extensions/qa-guardrail/package.json +12 -0
  201. package/pi/extensions/qa-guardrail/selection.ts +98 -0
  202. package/pi/extensions/qa-guardrail/types.ts +64 -0
  203. package/scripts/copy-assets.sh +10 -0
  204. package/scripts/reconcile-tags.sh +94 -0
  205. package/scripts/release-beta.sh +64 -0
  206. package/scripts/release-build.sh +53 -0
  207. package/scripts/release.sh +51 -0
  208. package/scripts/verify-adr-consistency.py +217 -0
  209. package/skills/code-review/SKILL.md +66 -0
  210. package/skills/codebase-design/SKILL.md +46 -0
  211. package/skills/configure-repo/SKILL.md +33 -0
  212. package/skills/diagnose-bug/SKILL.md +63 -0
  213. package/skills/domain-modeling/SKILL.md +56 -0
  214. package/skills/grill-me/SKILL.md +34 -0
  215. package/skills/i-have-an-idea/SKILL.md +166 -0
  216. package/skills/implement/SKILL.md +22 -0
  217. package/skills/research/SKILL.md +17 -0
  218. package/skills/ship/SKILL.md +26 -0
  219. package/skills/spike/SKILL.md +27 -0
  220. package/skills/tdd/SKILL.md +68 -0
  221. package/skills/tdd/references/deep-modules.md +53 -0
  222. package/skills/tdd/references/interface-design.md +74 -0
  223. package/skills/tdd/references/mocking.md +80 -0
  224. package/skills/tdd/references/refactoring.md +49 -0
  225. package/skills/tdd/references/tests.md +184 -0
  226. package/skills/to-specs/SKILL.md +141 -0
  227. package/skills/to-tasks/SKILL.md +143 -0
  228. package/skills/triage/SKILL.md +73 -0
  229. package/skills/ultra-generator/SKILL.md +263 -0
  230. package/skills/ultra-generator/references/aggregate-root.md +149 -0
  231. package/skills/ultra-generator/references/domain-event.md +174 -0
  232. package/skills/ultra-generator/references/entity.md +133 -0
  233. package/skills/ultra-generator/references/service.md +92 -0
  234. package/skills/ultra-generator/references/value-object.md +135 -0
  235. package/skills/wayfinder/SKILL.md +201 -0
  236. package/skills/workflow/SKILL.md +31 -0
  237. package/skills/writing-for-agents/SKILL-MECHANICS.md +32 -0
  238. package/skills/writing-for-agents/SKILL.md +86 -0
  239. package/skills/writing-for-agents/references/adrs.md +19 -0
@@ -0,0 +1,201 @@
1
+ ---
2
+ name: wayfinder
3
+ description: Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets, resolved one at a time until the way is clear.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Wayfinder
8
+
9
+ Plan a chunk of work too big for one agent session — a loose idea wrapped in fog, where the way from here to the **destination** isn't visible yet. Chart that way as a **shared map** on the issue tracker, then work its **decision tickets** — questions whose resolution is a decision, not a slice of build — one at a time until the route is clear.
10
+
11
+ The destination varies per effort: a spec to hand off, a decision to lock before planning starts, a change made in place.
12
+
13
+ Read `docs/agents/repo-config.md` for the repo pointers (`adr_dir`, `domain_dir`, `issue_language`, `tracker_cli`) — use them instead of hardcoded paths.
14
+
15
+ Reference: A-036 (wayfinder labels + orthogonality), A-042 (map/ticket structure), A-037 (`exec::` dimension), A-034 (its place in the canonical set), A-038 (skills referenced by name), A-031/A-032 (domain vocabulary).
16
+
17
+ ## Plan, don't do
18
+
19
+ Wayfinding is planning by default: each ticket resolves a decision, and the map is done when the way is clear — nothing left to decide before someone goes and does the thing. The pull to just do the work is usually the signal you've reached the edge of the map and it's time to hand off. An effort can override this in its Notas — carrying execution into the map — but absent that, produce decisions, not deliverables.
20
+
21
+ ## Refer by name
22
+
23
+ Every map and ticket is an issue, so it has a name — its title. In everything the human reads, refer to it by that name, linked — the id and URL ride inside the link, never as a bare id.
24
+
25
+ ## The Map
26
+
27
+ The map is a single issue labelled `wayfinder::map` — the canonical artifact. Its tickets are child issues of the map, linked at creation.
28
+
29
+ The map is an **index**, not a store: a decision lives in exactly one place — its ticket — so the map only gists it and links, never restates it.
30
+
31
+ ### The map body
32
+
33
+ The whole map at low resolution, loaded once per session. Open tickets are **not** listed — they are open child issues, found by query. The map's structure is owned by A-042 — this is its operational copy.
34
+
35
+ ```markdown
36
+ # Destino
37
+
38
+ <what reaching the end of this map looks like — one or two lines; every session orients to it before choosing a ticket>
39
+
40
+ # Notas
41
+
42
+ <domain and skills every session should consult; standing preferences for this effort>
43
+
44
+ # Decisiones tomadas
45
+
46
+ <!-- the index — one line per closed ticket: enough to judge relevance, then the link holds the detail -->
47
+
48
+ - [<closed ticket title>](link) — <one-line gist of the answer>
49
+
50
+ # Aún sin especificar
51
+
52
+ <!-- in-scope fog you can't ticket yet; graduates as the frontier advances -->
53
+
54
+ # Fuera de alcance
55
+
56
+ <!-- work ruled beyond the destination; closed, never graduates -->
57
+ ```
58
+
59
+ ### Tickets
60
+
61
+ Each ticket is a **child issue** of the map; its body is the question, sized to one agent session — the ticket structure is owned by A-042; this is its operational copy:
62
+
63
+ ```markdown
64
+ # Pregunta
65
+
66
+ <the decision or investigation this ticket resolves>
67
+
68
+ # Bloqueado por
69
+
70
+ <blocking tickets by title — or "Ninguno - puede iniciarse de inmediato">
71
+ ```
72
+
73
+ Each ticket carries a `wayfinder::<type>` label — one of `research`, `spike`, `grilling`, `task` (see Ticket Types).
74
+
75
+ A session **claims** a ticket by assigning it to the dev driving the map, first, before any work. That assignee is the claim: an open, unassigned ticket is unclaimed.
76
+
77
+ Blocking is a **body convention** (`# Bloqueado por`), matching `/skill:to-tasks`: the tracker has native blocking (the `blocks` link type) but `tracker_cli` cannot wire links onto an existing issue, so the tracker can't render the frontier natively. A ticket is **unblocked** when every ticket named in `# Bloqueado por` is closed; the **frontier** is the open, unblocked, unclaimed children.
78
+
79
+ The answer isn't part of the body — it's recorded on resolution. Assets created while resolving are linked from the issue, not pasted in.
80
+
81
+ ## Ticket Types
82
+
83
+ Execution mode is the global `exec::` dimension (A-037): `AFK` resolves agent-alone, `HITL` resolves only through the live exchange — the human's side comes from the human, not the agent.
84
+
85
+ - **research** (`exec::AFK`): surface a fact a decision waits on — docs, third-party APIs, local resources. Resolve with `/skill:research`.
86
+ - **spike** (`exec::HITL`): raise the fidelity of the discussion with a cheap, rough, concrete artifact to react to. Resolve with `/skill:spike`.
87
+ - **grilling** (`exec::HITL`): conversation; the default case. Always run `/skill:grill-me` and `/skill:domain-modeling`.
88
+ - **task** (`exec::HITL` or `exec::AFK`): manual work that must happen before a *decision* can be made — nothing to decide, spike, or research, but the discussion is blocked until it's done. The one type that does rather than decides, and it earns its place by unblocking a decision.
89
+
90
+ `wayfinder::<type>` answers only "what kind of decision" — never "who does it" (A-036).
91
+
92
+ ## Fog of war
93
+
94
+ The map is deliberately incomplete: chart only what you can see. Beyond the live tickets lies the **fog of war** — decisions you can tell are coming but can't yet pin down, because they hang on questions still open. Resolving a ticket clears the fog ahead of it, graduating whatever's now specifiable into fresh tickets.
95
+
96
+ **Fog or ticket?** The test is whether you can state the question precisely now — not whether you can answer it. Ticket when the question is already sharp (even if blocked); `# Aún sin especificar` when you can't yet phrase it that sharply.
97
+
98
+ `# Aún sin especificar` excludes what's already decided (Decisiones tomadas), what's a live ticket, and what's out of scope.
99
+
100
+ ## Out of scope
101
+
102
+ Fog only gathers toward the destination. Work beyond it is **out of scope** — not fog, and not in `# Aún sin especificar`. It gets its own `# Fuera de alcance` section.
103
+
104
+ A ticket that turns out to sit past the destination gets **closed** and a one-line entry in `# Fuera de alcance` (gist plus why), linking the closed ticket. It stays out of Decisiones tomadas — a scope boundary isn't a step on the route.
105
+
106
+ ## Invocation
107
+
108
+ Two modes. Either way, at most one ticket per session — research tickets excepted.
109
+
110
+ ### Chart the map
111
+
112
+ User invokes with a loose idea.
113
+
114
+ 1. **Name the destination.** Run `/skill:grill-me` and `/skill:domain-modeling` to pin down what this map is finding its way to.
115
+ 2. **Map the frontier.** Grill breadth-first, surfacing the open decisions and the first steps takeable now. If this surfaces no fog — the way is already clear and the journey fits one session — you don't need a map; stop and ask the user how to proceed.
116
+ 3. **Create the map** (label `wayfinder::map`): Destino and Notas filled, Decisiones tomadas empty, the fog sketched into Aún sin especificar.
117
+ 4. **Create the tickets** you can specify now as children (`--linked-issues <map_iid>`), each with `# Bloqueado por` written in the body.
118
+ 5. **Resolve the research tickets** with `/skill:research` (AFK) — the one exception to one-ticket-per-session.
119
+ 6. Stop — charting is one session's work; it hand-resolves nothing else. Name the first frontier ticket and tell the user how to continue: `/handoff <first ticket>`, then re-open the map with `/skill:wayfinder` in the fresh session.
120
+
121
+ ### Work through the map
122
+
123
+ User invokes with a map (URL or number); a ticket is optional.
124
+
125
+ 1. Load the **map** — the low-res view, not every ticket body.
126
+ 2. Choose the ticket: the one named by the user, else the first frontier ticket. **Claim it** by assigning it to yourself before any work.
127
+ 3. Resolve it — zoom into any related or closed ticket on demand; run the skills the Notas name. In doubt, run `/skill:grill-me` and `/skill:domain-modeling`.
128
+ 4. Record the resolution: post it as a comment, close the issue, and append a context pointer to Decisiones tomadas.
129
+ 5. Add newly-surfaced tickets; graduate any fog the answer made specifiable, clearing it from Aún sin especificar. If the answer reveals a ticket sits beyond the destination, rule it out of scope. If it invalidates other parts of the map, update or delete those tickets.
130
+ 6. **Hand off to the next session.** Name the next frontier ticket. If none remains, the way is clear — hand off (Plan, don't do). Otherwise tell the user how to continue: `/handoff <next ticket>`, then re-open the map with `/skill:wayfinder` in the fresh session.
131
+
132
+ The user may run unblocked tickets in parallel — expect other sessions to edit the tracker concurrently.
133
+
134
+ ## Tracker mechanics
135
+
136
+ Everything is `tracker_cli` (default `glab`). Map and ticket bodies follow the formatting rules owned by A-042.
137
+
138
+ Create the map:
139
+
140
+ ```bash
141
+ cat > /tmp/map-body.md << 'MAP_EOF'
142
+ # Destino
143
+ ...
144
+ # Notas
145
+ ...
146
+ # Decisiones tomadas
147
+
148
+ # Aún sin especificar
149
+ ...
150
+ # Fuera de alcance
151
+
152
+ MAP_EOF
153
+
154
+ <tracker_cli> issue create --title "<map title>" --description "$(cat /tmp/map-body.md)" --label "wayfinder::map"
155
+ ```
156
+
157
+ Create a ticket (child of the map):
158
+
159
+ ```bash
160
+ cat > /tmp/ticket-body.md << 'TICKET_EOF'
161
+ # Pregunta
162
+ ...
163
+ # Bloqueado por
164
+ ...
165
+ TICKET_EOF
166
+
167
+ <tracker_cli> issue create --title "<ticket title>" --description "$(cat /tmp/ticket-body.md)" --label "wayfinder::<type>,exec::<MODE>" --linked-issues <MAP_IID>
168
+ ```
169
+
170
+ `<MODE>` is the ticket's `exec::` value, from Ticket Types.
171
+
172
+ Claim a ticket:
173
+
174
+ ```bash
175
+ <tracker_cli> issue update <iid> --assignee @me
176
+ ```
177
+
178
+ (If `@me` isn't accepted, use your literal tracker username.)
179
+
180
+ Resolve a ticket:
181
+
182
+ ```bash
183
+ <tracker_cli> issue note <iid> -m "<resolution>"
184
+ <tracker_cli> issue close <iid>
185
+ ```
186
+
187
+ Update the map's Decisiones tomadas (rewrite the whole body):
188
+
189
+ ```bash
190
+ <tracker_cli> issue update <MAP_IID> --description "$(cat /tmp/map-body.md)"
191
+ ```
192
+
193
+ Find open tickets by type:
194
+
195
+ ```bash
196
+ <tracker_cli> issue list --label "wayfinder::<type>"
197
+ ```
198
+
199
+ ## Rules
200
+
201
+ The map and ticket formatting rules are owned by A-042 — read and apply them from there, not restated here.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: workflow
3
+ description: Map of the canonical skills and the order the development cycle flows. Use when unsure which skill to reach for, or to see the whole pipeline at once.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Workflow
8
+
9
+ The canonical skill set, in cycle order. Type a name to run it. The complete set lives in the package `@imolko/ultra-agent` — it is the canonical inventory (A-052); if a name here looks missing or stale, run `npx @imolko/ultra-agent update`.
10
+
11
+ Read `docs/agents/repo-config.md` for the repo pointers (`adr_dir`, `domain_dir`, `issue_language`, `tracker_cli`) — use them instead of hardcoded paths.
12
+
13
+ Reference: A-034 (the canonical set and the cycle model), A-038 (skills referenced by name), A-052 (repo pointers), A-035 (idea routing by candy), A-036 (wayfinder), A-039 (ship pipeline).
14
+
15
+ ## Entry points — you start these
16
+
17
+ - `/skill:i-have-an-idea` — turn a raw idea into a grab-able worker-issue, routed by candy to the spec line or `/skill:wayfinder`.
18
+ - `/skill:triage` — an incoming issue or merge request needs categorizing before any work.
19
+ - `/skill:grill-me` → `/skill:to-specs` → `/skill:to-tasks` → `/skill:ship` — the spec line: stress-test the plan, synthesize the spec, slice it into tickets, fire the pipeline to an MR.
20
+ - `/skill:wayfinder` — chart a big multi-session effort (8+ candies) or an unestimable `?` idea as a map of decision tickets.
21
+ - `/skill:implement` — turn tickets into working code when a spec already exists.
22
+
23
+ ## Disciplines — the agent reaches these mid-work
24
+
25
+ - `/skill:codebase-design` — vocabulary for where interfaces and seams live.
26
+ - `/skill:domain-modeling` — change the domain model, or record a project-tier ADR.
27
+ - `/skill:tdd` — the red-green loop.
28
+ - `/skill:code-review` — Standards + Spec review of a diff.
29
+ - `/skill:diagnose-bug` — a tight feedback loop for hard bugs.
30
+ - `/skill:spike` — a throwaway UI, logic, or API spike.
31
+ - `/skill:research` — investigate primary sources into cited notes.
@@ -0,0 +1,32 @@
1
+ # Skill mechanics
2
+
3
+ The skill-specific branch of [`writing-for-agents`](SKILL.md): what changes when the document is a skill — frontmatter, the invocation choice, and router skills. Everything else about writing it is the universal reference in `SKILL.md`.
4
+
5
+ ## Frontmatter
6
+
7
+ pi reads the Agent Skills fields below, with one pi quirk:
8
+
9
+ - `name` — quirk: it need **not** match the directory name.
10
+ - `description` — always in the system prompt. This is the skill's context-load cost — write it as the model-facing pointer (see `SKILL.md`).
11
+ - `disable-model-invocation: true` — hides the skill from the system prompt; only the human can reach it (see [Invocation](#invocation)).
12
+ - `argument-hint` — shown in the `/skill:name` autocomplete; `<angle brackets>` for required args, `[square brackets]` for optional.
13
+ - Also accepted, rarely used here: `license`, `compatibility`, `metadata`, `allowed-tools`.
14
+
15
+ ## Invocation
16
+
17
+ Two choices, trading the two loads:
18
+
19
+ - A **model-invoked** skill keeps a `description`, so the agent can fire it autonomously — and other skills can reach it. You can still type its name: model-invocation always _includes_ user reach; a description only ever adds agent discovery, never removes the human's. The description is the skill's top-level context pointer, forced to stay loaded at all times — permanent context load in exchange for discoverability. Mechanics: omit `disable-model-invocation`, and write a model-facing description carrying the trigger branches (the pointer-writing rules in `SKILL.md` apply in full).
20
+ - A **user-invoked** skill strips the description from the agent's reach: only the human typing its name can invoke it, and no other skill can. Zero context load, but it spends cognitive load — you are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing — a one-line summary, trigger lists stripped.
21
+
22
+ Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
23
+
24
+ Shared reference that two user-invoked skills both need can live in neither — with no descriptions, neither can fire the other. Push it to a plain file outside the skill system: external reference any skill can point at.
25
+
26
+ ## Splitting by invocation
27
+
28
+ The invocation cut of splitting (the sequence cut lives in `SKILL.md`): split off a model-invoked skill when a distinct leading word should trigger it on its own — a trigger word you actually use in your prompts. The always-loaded description must earn that independent reach.
29
+
30
+ ## Router skills
31
+
32
+ When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each, so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no description, so nothing but the human can reach them. In pi the human reaches them by typing `/skill:name`, so the router can name those literal commands — hinting, still not firing.
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: writing-for-agents
3
+ description: Writing documents for agents. Use when creating or editing a skill, authoring an ADR, or writing a standard the agent follows (a commit-message standard).
4
+ ---
5
+
6
+ Reference for writing any document an agent consumes — a skill, an ADR, another standard the agent follows (a commit-message standard), a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable — the agent taking the same _process_ every run, not producing the same output.
7
+
8
+ When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.
9
+
10
+ When you're writing an ADR in this repo, read [`references/adrs.md`](references/adrs.md) for the worked example.
11
+
12
+ Read `docs/agents/repo-config.md` for the repo pointers (`adr_dir`, `domain_dir`, `issue_language`, `tracker_cli`) — use them instead of hardcoded paths.
13
+
14
+ ## Context pointers
15
+
16
+ A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in the ADR index (`<adr_dir>/index.md`) naming an ADR is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material — and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
17
+
18
+ A pointer does two jobs — state what the material is, and list the **branches** that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
19
+
20
+ - **Front-load the leading word** — the pointer is where it does its triggering work.
21
+ - **One trigger per branch.** Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
22
+ - **Cut identity the body already carries.**
23
+
24
+ ## The two loads
25
+
26
+ Every document and pointer you add spends one of two budgets:
27
+
28
+ - **Context load** — the cost of always-loaded material on the agent's window: a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.
29
+ - **Cognitive load** — the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise — it is the price of human agency; spend it where human judgement matters, remove it where it does not.
30
+
31
+ Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
32
+
33
+ ## Information hierarchy
34
+
35
+ A document is built from two content types — **steps** (the ordered actions the agent performs) and **reference** (definitions, rules, facts consulted on demand) — that mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
36
+
37
+ 1. **In-file step** — the primary tier: what the agent does, in order.
38
+ 2. **In-file reference** — consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung) — a fine arrangement, not a smell.
39
+ 3. **Disclosed reference** — pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
40
+
41
+ Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
42
+
43
+ **Progressive disclosure** is the move down the ladder — out of the main file and behind a pointer — so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip — a variance lever, not just a legibility one.
44
+
45
+ **Co-location** is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent — grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
46
+
47
+ **Sprawl** is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
48
+
49
+ ## Steps and completion criteria
50
+
51
+ Every step ends on a **completion criterion** — the condition that tells the agent the work is done. Two properties make it a lever:
52
+
53
+ - **Clarity** — can the agent tell done from not-done? A vague bound ("understanding reached") invites **premature completion**: ending the step before it is genuinely done, attention slipping to _being done_. The visible steps still ahead — the **post-completion steps** — supply the pull; the criterion's clarity is the resistance. Defend in order: **sharpen the bound first** (local and cheap); only if it is irreducibly fuzzy _and_ you observe the rush, hide the later steps by splitting the sequence — and hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
54
+ - **Demand** — how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives **legwork** — the digging the agent does within the work, latent in the wording rather than written as its own step — and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
55
+
56
+ The strongest criteria are both checkable and exhaustive.
57
+
58
+ ## When to split
59
+
60
+ Splitting one document into two spends one of the two loads, so split only when the cut earns it:
61
+
62
+ - **By sequence** — split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
63
+ - **By invocation** — skill-specific: see [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md).
64
+
65
+ ## Leading words
66
+
67
+ A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds. Coining your own works if you define it clearly, but a made-up word recruits no priors — you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
68
+
69
+ It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
70
+
71
+ Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea — each is a passage begging to collapse into a single token:
72
+
73
+ - "fast, deterministic, low-overhead" → _tight_ (a _tight_ loop).
74
+ - "a loop you believe in" → _red_ — a fuzzy gate becomes a binary observable state (the loop goes _red_ on the bug, or it doesn't).
75
+
76
+ You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire — go find them.
77
+
78
+ **Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive** — state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
79
+
80
+ ## Pruning
81
+
82
+ - Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit. **Duplication** — the same meaning in more than one place — costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
83
+ - The **ADR registry** is the source of truth for rules and mechanics — a document points at the owning ADR, never restates it.
84
+ - The **environment** is a source of truth too — `package.json` scripts, config files, the directory layout, `--help` output — and a document that restates it is a **cache**: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.
85
+ - Check every line for **relevance**: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is **sediment**: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
86
+ - Hunt **no-ops** sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test — does it change behaviour versus the default? — is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it. The test also grades leading words: a word too weak to beat the default (_be thorough_ when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (_relentless_), not a different technique.
@@ -0,0 +1,19 @@
1
+ # Worked example: this repo's ADRs
2
+
3
+ The ADRs in `<adr_dir>` are documents the coding agent reads and writes. They are also a live instance of the levers in `SKILL.md`. This file annotates the mapping; it points at the ADRs and never restates their content.
4
+
5
+ The format, tier hierarchy, tag vocabulary, and lifecycle are owned by `<adr_dir>/ADR-0000-proceso-y-formato-de-adrs.md` (the meta-ADR). That file is the single source of truth — read it for the rules, and leave the rules there.
6
+
7
+ ## The levers, instantiated
8
+
9
+ - **Checkable, exhaustive completion criterion.** The gate `scripts/verify-adr-consistency.py` must exit `0` with zero violations. "Done" is a binary, machine-checked state — not a vague "understanding reached". This is the completion-criterion lever from `SKILL.md`, applied to a whole document family.
10
+ - **Environment as source of truth (the cache rule).** The gate's `hardcoded` rule *is* the cache principle, enforced by machine.
11
+ - **Single source of truth.** `<adr_dir>/index.md` is the canonical index, enforced by the `indices` gate rule.
12
+ - **Context pointers.** `<adr_dir>/index.md` names each ADR and its tier — a real pointer hub doing both jobs (states what the material is, encodes when to reach it). Each tier's `index.md` is the same object one level down.
13
+ - **Co-location.** Each ADR keeps its format sections and frontmatter under one heading, so reading one part brings its neighbours with it.
14
+
15
+ ## When writing an ADR
16
+
17
+ - Follow `ADR-0000` exactly: Nygard sections, the project frontmatter, the tier matching the decision's scope, the approved tag vocabulary, the numbering and lifecycle rules.
18
+ - Run the gate before finishing: `python3 scripts/verify-adr-consistency.py`. Exit `0` is the completion criterion.
19
+ - Link related ADRs by relative markdown path (the `jerarquia` and `enlaces` gate rules check this); point at them, don't restate them.