@brainervirus/workit-opencode 0.6.0 → 0.7.1

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 (83) hide show
  1. package/assets/commands/wk-changelog.md +2 -0
  2. package/assets/commands/wk-commit.md +2 -0
  3. package/assets/commands/wk-docs-refresh.md +2 -0
  4. package/assets/commands/wk-handoff.md +2 -0
  5. package/assets/commands/wk-implement.md +2 -0
  6. package/assets/commands/wk-init.md +2 -0
  7. package/assets/commands/wk-issue-update.md +2 -0
  8. package/assets/commands/wk-meetings.md +2 -0
  9. package/assets/commands/wk-pr.md +2 -0
  10. package/assets/commands/wk-release-notes.md +2 -0
  11. package/assets/commands/wk-status.md +2 -0
  12. package/assets/commands/wk-verify.md +2 -0
  13. package/assets/skills/wk-changelog/SKILL.md +15 -0
  14. package/assets/skills/wk-commit/SKILL.md +16 -0
  15. package/assets/skills/wk-docs-refresh/SKILL.md +15 -0
  16. package/assets/skills/wk-handoff/SKILL.md +17 -0
  17. package/assets/skills/wk-implement/SKILL.md +41 -0
  18. package/assets/skills/wk-init/SKILL.md +31 -0
  19. package/assets/skills/wk-issue-update/SKILL.md +27 -0
  20. package/assets/skills/wk-issue-update/references/youtrack-update-style.md +81 -0
  21. package/assets/skills/wk-meetings/SKILL.md +17 -0
  22. package/assets/skills/wk-pr/SKILL.md +27 -0
  23. package/assets/skills/wk-release-notes/SKILL.md +15 -0
  24. package/assets/skills/wk-status/SKILL.md +16 -0
  25. package/assets/skills/wk-verify/SKILL.md +16 -0
  26. package/assets/templates/execution-contract.md +58 -0
  27. package/assets/templates/greeting.md +1 -0
  28. package/assets/templates/headers.md +3 -0
  29. package/assets/templates/hygiene/.editorconfig +8 -0
  30. package/assets/templates/hygiene/.gitattributes +3 -0
  31. package/assets/templates/hygiene/CHANGELOG.md +14 -0
  32. package/assets/templates/hygiene/CONTRIBUTING.md +3 -0
  33. package/assets/templates/hygiene/LICENSE +21 -0
  34. package/assets/templates/hygiene/README.md +3 -0
  35. package/assets/templates/issue-update.md +6 -0
  36. package/assets/templates/plan-template.md +25 -0
  37. package/assets/templates/spec-template.md +51 -0
  38. package/assets/templates/superpowers-doc-contract.md +70 -0
  39. package/assets/vendor/superpowers/skills/brainstorming/SKILL.md +159 -0
  40. package/assets/vendor/superpowers/skills/brainstorming/scripts/frame-template.html +213 -0
  41. package/assets/vendor/superpowers/skills/brainstorming/scripts/helper.js +167 -0
  42. package/assets/vendor/superpowers/skills/brainstorming/scripts/server.cjs +723 -0
  43. package/assets/vendor/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  44. package/assets/vendor/superpowers/skills/brainstorming/visual-companion.md +222 -0
  45. package/assets/vendor/superpowers/skills/dispatching-parallel-agents/SKILL.md +185 -0
  46. package/assets/vendor/superpowers/skills/executing-plans/SKILL.md +70 -0
  47. package/assets/vendor/superpowers/skills/finishing-a-development-branch/SKILL.md +241 -0
  48. package/assets/vendor/superpowers/skills/receiving-code-review/SKILL.md +213 -0
  49. package/assets/vendor/superpowers/skills/requesting-code-review/SKILL.md +103 -0
  50. package/assets/vendor/superpowers/skills/requesting-code-review/code-reviewer.md +172 -0
  51. package/assets/vendor/superpowers/skills/subagent-driven-development/SKILL.md +418 -0
  52. package/assets/vendor/superpowers/skills/subagent-driven-development/implementer-prompt.md +139 -0
  53. package/assets/vendor/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +188 -0
  54. package/assets/vendor/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  55. package/assets/vendor/superpowers/skills/systematic-debugging/SKILL.md +296 -0
  56. package/assets/vendor/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  57. package/assets/vendor/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
  58. package/assets/vendor/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
  59. package/assets/vendor/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
  60. package/assets/vendor/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  61. package/assets/vendor/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  62. package/assets/vendor/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  63. package/assets/vendor/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  64. package/assets/vendor/superpowers/skills/test-driven-development/SKILL.md +371 -0
  65. package/assets/vendor/superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
  66. package/assets/vendor/superpowers/skills/using-git-worktrees/SKILL.md +202 -0
  67. package/assets/vendor/superpowers/skills/using-superpowers/SKILL.md +62 -0
  68. package/assets/vendor/superpowers/skills/using-superpowers/references/antigravity-tools.md +23 -0
  69. package/assets/vendor/superpowers/skills/using-superpowers/references/codex-tools.md +39 -0
  70. package/assets/vendor/superpowers/skills/using-superpowers/references/pi-tools.md +16 -0
  71. package/assets/vendor/superpowers/skills/verification-before-completion/SKILL.md +139 -0
  72. package/assets/vendor/superpowers/skills/writing-plans/SKILL.md +174 -0
  73. package/assets/vendor/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  74. package/assets/vendor/superpowers/skills/writing-skills/SKILL.md +689 -0
  75. package/assets/vendor/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
  76. package/assets/vendor/superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  77. package/assets/vendor/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  78. package/assets/vendor/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  79. package/assets/vendor/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  80. package/dist/plugin.js +9046 -0
  81. package/package.json +17 -13
  82. package/src/bootstrap.ts +0 -65
  83. package/src/plugin.ts +0 -224
@@ -0,0 +1,2 @@
1
+ Load the wk-changelog skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-commit skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-docs-refresh skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-handoff skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-implement skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-init skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-issue-update skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-meetings skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-pr skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-release-notes skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-status skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,2 @@
1
+ Load the wk-verify skill and follow it.
2
+ $ARGUMENTS
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: wk-changelog
3
+ description: Preview and apply a Keep a Changelog update.
4
+ ---
5
+
6
+ # Changelog
7
+
8
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
9
+ 2. Call the read-only `workflow_changelog_context` context tool; its result is ground truth.
10
+ 3. Draft the exact insertion preview, including target heading, categories, and bullets.
11
+ 4. Use native `question` with concise choices and allow a custom answer before changing the file.
12
+ 5. Call `workflow_changelog_apply` only after approval with `confirmed: true`.
13
+ 6. Report the structured success, failure stage, or partial result; never infer success.
14
+
15
+ Target `## [Unreleased]` unless the user requests a release. Use only Added, Changed, Deprecated, Removed, Fixed, or Security; group user-visible behavior and skip internal-only work. The apply tool must merge into existing category headings, preserve all unrelated lines, and skip duplicate bullets. If normalization is needed, include it in the same preview and approval. Do not hand-edit the changelog, version packages, tag, or commit. `todowrite` and `task` are unnecessary here.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: wk-commit
3
+ description: Preview and create a structured local commit without staging.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Commit
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call the read-only `workflow_git_context` context tool with any selected paths; its result is ground truth.
11
+ 3. Draft the exact Conventional Commit message and the already-staged file set.
12
+ 4. Use native `question` with concise choices and allow a custom answer before committing.
13
+ 5. Call `workflow_commit` only after approval with `confirmed: true` and the reviewed `message`.
14
+ 6. Report the structured success, failure stage, or partial result; never infer success.
15
+
16
+ Never stage files automatically: `workflow_commit` commits the current index only. Stop for an empty index, partial staging ambiguity, unrelated staged files, secrets, protected branches, or failed hooks. Never push, bypass hooks, use `--no-verify`, or claim files were committed unless the result proves it. Keep related code, tests, and docs in one coherent commit; do not invent extra commit groups. `todowrite` and `task` are unnecessary here.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: wk-docs-refresh
3
+ description: Refresh stale repository documentation from structured change context.
4
+ ---
5
+
6
+ # Docs refresh
7
+
8
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
9
+ 2. Call the read-only `workflow_docs_context` context tool; its result is ground truth.
10
+ 3. Draft the smallest factual documentation edit from structured facts.
11
+ 4. Use native `question` with concise choices and allow a custom answer only if the requested edit scope is ambiguous.
12
+ 5. Apply approved edits with normal OpenCode file tools, then call `workflow_verify`.
13
+ 6. Report the structured success, failure stage, or partial result; never infer success.
14
+
15
+ Prefer README changes when stale, then directly related tracked documentation. Preserve tone and structure; do not invent features, commands, environment variables, screenshots, or install steps. Do not make stylistic rewrites, commit, or modify product code. Report verification exactly. Use `todowrite` only when multiple requested documents need tracking; `task` is unnecessary.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: wk-handoff
3
+ description: Create and optionally select a seeded OpenCode continuation session.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Handoff
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call the automatic `workflow_handoff_session` tool with the full user message as `message`; its result is ground truth.
11
+ 3. The tool resolves the tracked spec, plan, and SDD context and seeds the continuation session.
12
+ 4. This workflow needs no `question`: the explicit invocation is approval.
13
+ 5. Pass only `message`; the tool itself recognizes an exact `--stay` flag and otherwise selects the new session.
14
+ 6. Report the structured success, failure stage, or partial result; never infer success.
15
+ 7. After any `workflow_handoff_session` result—success, partial, or failure—end the originating turn immediately after one status message. Never create todos, execute the plan inline, modify files, retry handoff, or call another tool.
16
+
17
+ Never emit a continuation prompt, use the clipboard, or ask the user to copy text. If selected, report the session ID only if the current session remains visible. If staying, report the seeded session ID. On failure, report `stage` and `error`; preserve any returned session for the session picker and never recreate it automatically. `todowrite` and `task` are unnecessary here.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: wk-implement
3
+ description: Coordinate a tracked Superpowers plan with delegated implementation and reviews.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Implement
8
+
9
+ The parent agent is coordinator-only. It must not edit product code or perform delegated exploration.
10
+
11
+ ## Native setup
12
+
13
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
14
+ 2. Call read-only `workflow_plan_tasks` and `workflow_sdd_context`; their structured results are ground truth.
15
+ 3. Call `workflow_flow_status` with the plan path and hard-stop unless `spec.status === "approved"`, `plan.status === "approved"`, and `menu.presented === true`. If any gate is missing, run the required approval flow (`workflow_spec_approve`/`workflow_plan_approve` after the user's native-question approval, `workflow_plan_menu` after the post-plan menu) and re-check — never start tasks on a draft or unapproved plan.
16
+ 4. Initialize native `todowrite` from returned tasks and mark ledger-completed task IDs completed.
17
+ 5. Call `workflow_resolve_branch`, then show the current branch, target branch, and stash behavior before any branch checkout/setup mutation.
18
+ 6. Always use native `question` before that mutation. For a clean tree, ask whether to proceed or cancel. For a dirty tree, add the stash choice and state what will be stashed; allow a custom answer.
19
+ 7. Call `workflow_branch_setup` with `confirmed: true` only after approval; never use worktrees. Flow-tool confirmations are never agent-typed booleans and never caller-supplied evidence: the plugin records your native-`question` answer as a host-observed one-use receipt (`attested: true`, `callID`, `selectedLabel`, `recordedAt`) consumed by the approval/menu tools — no evidence argument exists. Delegated worker status comes from host session parentage (`parentID`), never a caller `role` field.
20
+ 8. Report any setup failure stage or partial result; never infer success.
21
+ 9. Fill specs/plans from the quality templates: `templates/spec-template.md` for specs, `templates/plan-template.md` for plans. After `workflow_docs_validate`, surface the returned `quality` findings: hard findings (missing required section, missing CA-XX) block task start unless the user explicitly waives them; warnings are advisory.
22
+
23
+ Working state lives only in gitignored `docs/<slug>/sdd/` — never `.superpowers/sdd`, never an extra nested slug level. Load the package-neutral execution contract by name, not an installation-specific path.
24
+
25
+ ## Per-task loop
26
+
27
+ For every plan task whose ID is absent from `completed_task_ids`:
28
+
29
+ 1. Mark it `in_progress` with `todowrite`.
30
+ 2. Create its brief with `workflow_sdd_task_brief` using `confirmed: true` and the parsed `section_text`.
31
+ 3. Use `task` with the built-in `explore` agent for read-only discovery when needed, then a fresh built-in `general` agent to implement from the brief. The parent remains coordinator-only.
32
+ 4. Require product changes to follow TDD: failing check first, minimal implementation, passing focused check.
33
+ 5. Create the review package with `workflow_sdd_review_package` using `confirmed: true`.
34
+ 6. Dispatch separate `general` agents for spec-compliance review and code-quality review. **Blocking findings** (Critical, Important, or spec-compliance) may trigger at most **two** fix+re-review rounds per task. **Advisory** findings (Minor, style, YAGNI, taste) never pause the loop — append them to `<SDD_DIR>/advisories.md` with the task id.
35
+ 7. Append the validated ledger line with `workflow_sdd_append_progress` using `confirmed: true`, then mark the task completed with `todowrite`.
36
+
37
+ Never redispatch completed task IDs. Pass task briefs and review diffs to agents; do not make them reparse the plan. Keep commits on the in-place feature/bugfix branch.
38
+
39
+ ## Final gate
40
+
41
+ After all remaining tasks, dispatch a final full-branch code review, run `workflow_verify`, and report exact per-check results. Present the full `<SDD_DIR>/advisories.md` roll-up once, then use native `question` so the user can choose which advisory items to fix, discuss, or discard. Only then may advisory fixes run. Use `workflow_git_context` for the final commit preview and the `wk-commit` skill for any approved commit. If a tracked stash reference exists, preview reapplication with `question`, then call `workflow_branch_setup` with `confirmed: true` only after approval.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: wk-init
3
+ description: Preview and apply one-time workit configuration.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Init
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call the read-only `workflow_toolkit_init_status` context tool; its result is ground truth.
11
+ 3. Draft an exact preview of each missing scaffold and the active VCS provider.
12
+ 4. For each guarded mutation, use native `question` with concise choices and allow a custom answer.
13
+ 5. Call `workflow_toolkit_init_apply` only after approval with `confirmed: true` and the chosen action.
14
+ 6. Report the structured success, failure stage, or partial result; never infer success.
15
+
16
+ Never ask for or accept tokens in chat. For missing YouTrack configuration, preview `youtrack_scaffold`; for missing VCS configuration, ask GitLab or GitHub, preview `vcs_scaffold`, and pass `vcs_provider`. Both provider token placeholders may be created, but identify which one is active. Show the returned token-create URL and local edit path after apply. Verification remains a separate `wk-status` run. `todowrite` and `task` are unnecessary here.
17
+
18
+ ## Guided config (action: "config")
19
+
20
+ When the user wants to personalize the toolkit (locale, timezone, branch policy), ask native questions one at a time:
21
+
22
+ 1. **Locale** — present a combobox of `localeOptions` (en, es-CL, es-MX, es-AR, pt-BR) + custom answer; validate the answer against BCP-47 (`^[a-z]{2,3}(-[A-Z]{2})?$`) before passing it.
23
+ 2. **Timezone** — e.g. `America/Santiago`, custom allowed.
24
+ 3. **Branch policy preset** — gitflow / github-flow / trunk-based / custom.
25
+ 4. **Custom branch lists** (only when preset = custom): allowed patterns (`feature/*`, `codex/*`, …) and protected names (`main`, …).
26
+
27
+ Then call `workflow_toolkit_init_apply` with `action: "config"`, `confirmed: true`, and the answered values. Report the written `config.json` path and its contents.
28
+
29
+ After config, call `workflow_toolkit_init_apply` with `action: "gitignore"` and `confirmed: true` to ensure the project `.gitignore` covers `docs/*/sdd/` and common OS/editor entries (creates it if missing, preserves existing entries).
30
+
31
+ After gitignore, call `workflow_toolkit_init_apply` with `action: "hygiene"`, `confirmed: true`, and `include_open_source: true` for open-source repos — creates CHANGELOG.md (Keep a Changelog), README.md, .editorconfig, .gitattributes, and optionally LICENSE + CONTRIBUTING.md. Never overwrites existing files.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: wk-issue-update
3
+ description: Draft and post a reviewed es-CL YouTrack task update with time.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Issue update
8
+
9
+ Read [references/youtrack-update-style.md](references/youtrack-update-style.md) before drafting. Chat follows the user's language; the comment body is manager-friendly Spanish (`es-CL`).
10
+
11
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
12
+ 2. Ask in plain prose for the user-provided issue URL or ID, call `workflow_youtrack_parse_issue`, then read-only `workflow_youtrack_context`; structured results are ground truth.
13
+ 3. Gather the user's notes, call `workflow_youtrack_parse_duration`, polish only supported facts, and call `workflow_youtrack_draft` for the exact comment preview.
14
+ 4. Use native `question` with concise choices and allow a custom answer to approve the reviewed comment and time entry.
15
+ 5. Call `workflow_youtrack_post` only after approval with `confirmed: true`, `issueId`, `markdown`, and `minutes`.
16
+ 6. Report the structured success, failure stage, or partial result; never infer success.
17
+
18
+ Never guess the issue, compute minutes, pass a date, expose tokens, or post Git/file details as the update. Never present a clickable `question` option whose label is an instruction to type free text (e.g. "Type the issue URL/ID"): clicking an option returns the label literal, not the typed value, so ask for free text in prose instead, with the custom answer field enabled. Preserve the user's paragraph voice, explain technical terms plainly, and avoid robotic status bullets. `todowrite` and `task` are unnecessary here.
19
+
20
+ Consume the standard Result envelope:
21
+
22
+ - If `result.ok` is true, report only effects proven by `result.data`.
23
+ - If false, use `result.data.postedComment` and `result.data.loggedMinutes` to distinguish completed effects.
24
+ - If `result.data.retry === "workflow_youtrack_post"`, use native `question` to ask whether to retry the unchanged reviewed `issueId`, `markdown`, and `minutes`. On approval, call `workflow_youtrack_post` with `confirmed: true` at most once; never loop.
25
+ - If `result.data.retry === "workflow_youtrack_log_time"`, use native `question` to ask whether to retry the same `issueId` and `minutes`. On approval, call `workflow_youtrack_log_time` with `confirmed: true`, `issueId`, `minutes` at most once; never repost a known posted comment.
26
+ - If the second attempt fails, stop and report its structured result. Never switch retry tools or infer that either effect succeeded.
27
+ - If outcome is `unknown` or `result.data.retry` is absent, show `result.data.instructions` when present, reconcile manually, and do not retry either mutation.
@@ -0,0 +1,81 @@
1
+ # YouTrack update style (Cristhofer / es-CL)
2
+
3
+ Use when writing or polishing the comment body before `workflow_youtrack_draft`. **Preserve the author's voice** — like the ChatGPT revision thread: grammar, flow, and light structure, not a changelog.
4
+
5
+ ## Audience
6
+
7
+ **@Alejandra.Flores is the primary reader — she is not a developer.** Write for a technical project manager:
8
+
9
+ - Lead with **what you worked on and why it mattered**, not implementation mechanics.
10
+ - If you mention something technical (OpenAPI, flags, component names, GUAS, MFE), add **one short plain-language clause** so the reader understands impact without knowing the stack.
11
+ - Prefer product/feature language: *data sources*, *integración con el backend*, *selector de color*, *vista del segundo factor*.
12
+
13
+ ### Technical detail — clarify, don't drop
14
+
15
+ | Too dev (avoid alone) | Better for manager |
16
+ |-----------------------|-------------------|
17
+ | overlays fuera del shadow DOM en el host | el selector de color no se veía bien cuando el reporte está embebido en la web principal |
18
+ | `replaceUrl: true` en el interceptor | para que al volver atrás no se repitiera el mismo error en bucle |
19
+ | Migré a `daisy-overlay-tokens` | ajusté los estilos del overlay para que respeten el tema de la web |
20
+
21
+ Only include dev terms the user actually brought up — then **translate or contextualize** in the same breath.
22
+
23
+ ## Shape
24
+
25
+ 1. `# Actualización` (single H1)
26
+ 2. Blank line
27
+ 3. `@Alejandra.Flores` + greeting (`Hola, buenos días.` / `Hola, buenas tardes.`) — same line or next paragraph OK
28
+ 4. **Body: paragraphs**, not bullet dumps
29
+
30
+ Optional second H1 when the user has a long tangent block:
31
+
32
+ - `## Off-topic` — only when the user's material is clearly a side topic (tooling, proceso, ideas). Keep the main work under `# Actualización`.
33
+
34
+ ## Openers (only if the user's material implies it)
35
+
36
+ - `Hoy estuve trabajando en…` / `Hoy por la tarde he estado full con…`
37
+ - `Hoy estuve full con <proyecto>.`
38
+ - `Dado lo que conversamos,…`
39
+
40
+ Do **not** force an opener.
41
+
42
+ ## Voice
43
+
44
+ - First person, Chilean Spanish: *harto*, *darle una vuelta*, *al día*, *trasteando*, *ojalá*.
45
+ - Honest: *al parecer*, *creo que*, *imagino que*, *no alcancé a*, *entiendo que*.
46
+ - Explain **why** and **what's next**, not file trees.
47
+ - Close with forward look when relevant: *Mañana…*, *me falta…*, *de momento va bien*.
48
+
49
+ ## Tangents
50
+
51
+ Natural bridges: `Por otro lado,…`, `Como comentario adicional,…`, `Como punto aparte,…`, `Quiero comentar algo que puede ser interesante.`
52
+
53
+ Long tooling/process tangents → `## Off-topic` (exemplar 4).
54
+
55
+ ## Allowed formatting
56
+
57
+ - Backticks for product/component names the user mentioned: `` `color-picker` ``, `` `button` ``
58
+ - Links and screenshots the user attached
59
+ - Short inline lists **only** when comparing options the manager needs to understand (exemplar 4: OpenAPI vs backend vs frontend) — as **prose or one flowing sentence**, not a task checklist
60
+
61
+ ## Forbidden (unless user wrote them verbatim)
62
+
63
+ - Branch names, SHAs, `src/...` paths
64
+ - Nested `###` subsections for work items
65
+ - Bullet lists of completed tasks (PR style)
66
+ - Stacked changelog verbs: *Implementé*, *Migré*, *Alineé*
67
+ - Invented work or metrics
68
+ - Pasting `git log`, agent session, or `facts.*` into the comment
69
+ - Jargon without a plain-language gloss
70
+
71
+ ## Polish level (ChatGPT-thread)
72
+
73
+ 1. Grammar and spelling.
74
+ 2. Smooth sentences; similar length to input.
75
+ 3. Split wall-of-text into paragraphs; add bridges only when needed.
76
+ 4. **Do not** add facts the user did not supply.
77
+ 5. **Do** add a brief gloss when the user used opaque tech terms.
78
+
79
+ ## Length
80
+
81
+ Match the user. Never pad.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: wk-meetings
3
+ description: Log meeting time only to the configured YouTrack meeting issue.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Meetings
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call read-only `workflow_youtrack_context` with `mode: "meetings"`; its sole configured target is ground truth.
11
+ 3. Ask for duration text, call `workflow_youtrack_parse_duration`, and draft the exact IRPT-12 time entry only.
12
+ 4. Use native `question` with concise choices and allow a custom answer to approve the shown issue, minutes, and work-item text.
13
+ 5. Call `workflow_youtrack_log_time` only after approval with `confirmed: true`, `issueId`, `minutes`, `text`.
14
+ 6. If `result.data.outcome` is `unknown`, tell the user to reconcile manually and do not retry. Retry `workflow_youtrack_log_time` at most once only when `result.data.outcome` is `not_applied` and `result.data.retry` names that tool; follow `result.data.instructions` and correct invalid input before retrying.
15
+ 7. Report the structured success or failure stage; never infer success.
16
+
17
+ Use the configured meeting issue even if its default label is IRPT-12. Never compute minutes, pass a date, ask for a meeting type, post a comment, or call `workflow_youtrack_post`. `todowrite` and `task` are unnecessary here.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: wk-pr
3
+ description: Preview and create a pull or merge request from branch-exclusive facts.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Pull request
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call the read-only `workflow_pr_context` context tool for branch-exclusive commits and changes; its result is ground truth.
11
+ 3. Call `workflow_verify`, then draft the exact title, body, base, head, and draft state from structured facts.
12
+ 4. **Show** the exact title and body in chat before any create question.
13
+ 5. Use native `question` with concise choices and allow a custom answer before creation.
14
+ 6. Call `workflow_pr_create` only after approval with `confirmed: true` and the reviewed fields.
15
+ 7. Report the structured success, failure stage, or partial result; never infer success.
16
+
17
+ ## GitHub issue linking
18
+
19
+ When the resolved workspace is github with `link_on_pr` — the `workflow_pr_context` tool's `vcs_config` returns `issues_provider: "github"` and `link_on_pr: true` — and no issue is derivable (no `WORKFLOW_GH_ISSUE` env, no numeric branch id like `feature/42-title`, which auto-links without asking), ask with native `question` before creation, exactly three options:
20
+
21
+ 1. **Use an existing issue** — the user provides the number (extract it from a URL if pasted); verify it exists with `gh issue view <n>` before proceeding.
22
+ 2. **Create a new issue** — via `gh issue create --title "<title>" --body "<body>"`; on success pass the returned number. Reuse the missing-CLI guard: if `gh` is not installed, surface the structured error with the install link and ask the user to confirm once installed.
23
+ 3. **Skip linking** — no issue line in the PR body.
24
+
25
+ Pass the chosen issue to pr-create via env: `WORKFLOW_GH_ISSUE=<n>` and, when the PR does NOT resolve the issue, `WORKFLOW_GH_ISSUE_RELATION=related` (default `closes`). The youtrack linking flow (`youtrack.link_issues`) for work workspaces is unchanged.
26
+
27
+ Only feature or bugfix branches may target the configured base; never create from a protected branch. The body must describe only branch-exclusive changes, follow the repository template when present, and disclose failed or skipped verification. Never expose tokens, edit product files, or fall back to provider CLIs. `todowrite` and `task` are unnecessary here.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: wk-release-notes
3
+ description: Draft user-facing release notes for an explicit range.
4
+ ---
5
+
6
+ # Release notes
7
+
8
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
9
+ 2. Require an exact version, tag, or commit range, then call the read-only `workflow_release_notes_context`; its result is ground truth.
10
+ 3. Draft notes from structured facts and include both requested and resolved range metadata.
11
+ 4. Use native `question` only when the exact range must be supplied or corrected; allow a custom answer.
12
+ 5. This workflow has no mutation tool.
13
+ 6. Report the structured success, failure stage, or partial result; never infer success.
14
+
15
+ Write for users: supported highlights, fixes, upgrade notes, and known issues only. Omit empty sections except Highlights, and say directly when the resolved range contains no user-facing changes. Do not edit files, publish a release, or infer a range. `todowrite` and `task` are unnecessary here.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: wk-status
3
+ description: Report workit, YouTrack, and VCS health.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Status
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call the read-only `workflow_toolkit_status` context tool once; its result is ground truth.
11
+ 3. Draft the health report from structured facts.
12
+ 4. This workflow has no guarded mutation and does not need `question`.
13
+ 5. Do not call any mutation tool.
14
+ 6. Report the structured success, failure stage, or partial result; never infer success.
15
+
16
+ Show every `items[]` result, the resolved YouTrack settings and verification, the VCS provider and verification, and the exact `ready` verdict. For placeholders, point to the returned token creation and edit paths; never request tokens in chat. Use only `workflow_toolkit_status` and report its structured state. Do not run shell, Git, direct HTTP, isolated token verification, or any mutation. `todowrite` and `task` are unnecessary for this read-only workflow.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: wk-verify
3
+ description: Discover and run project validation with workflow_verify.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Verify
8
+
9
+ 1. Load this skill explicitly through OpenCode's `skill` tool.
10
+ 2. Call the read-only `workflow_verify` context tool with `dry_run: true`; its result is ground truth.
11
+ 3. Draft the discovered checks and the proposed selected run from structured facts.
12
+ 4. When the user must choose checks, use native `question` with concise choices and allow a custom answer.
13
+ 5. Call `workflow_verify` with `dry_run: false` only for the approved run.
14
+ 6. Report the structured success, failure stage, or partial result; never infer success.
15
+
16
+ Do not edit files or fix failures. Report every check exactly as pass, fail, or skipped, including its command, exit code, and skip reason. Success requires every executed check to exit 0. If the user's message says `--dry-run`, stop after discovery.
@@ -0,0 +1,58 @@
1
+ Load `using-superpowers`, `subagent-driven-development`, `test-driven-development`, and `verification-before-completion` through OpenCode's `skill` tool. Implement the existing plan; do not re-plan.
2
+
3
+ **Spec:** <SPEC_PATH>
4
+ **Plan:** <PLAN_PATH>
5
+ **Branch:** <BRANCH>
6
+ **SDD:** `<SDD_DIR>`
7
+
8
+ ## Hard gates
9
+
10
+ - The parent is coordinator-only: it does not edit product code or perform delegated exploration.
11
+ - Never use a worktree. Branch changes are in-place through `workflow_branch_setup` on `feature/*` or `bugfix/*`; never commit on protected branches.
12
+ - Working state, briefs, ledgers, and review diffs live only under gitignored `<SDD_DIR>` in `docs/<slug>/sdd/` and use `workflow_sdd_*` tools.
13
+ - Use native `todowrite` for visible task state as well as the gitignored ledger.
14
+ - Use native `question` for branch/stash choices and guarded external mutations; call mutation tools only after approval with `confirmed: true` (grounded in the recorded NativeChoiceEvidence).
15
+ - Flow-tool confirmations are never agent-typed booleans and never caller-supplied evidence objects: on OpenCode the plugin records the user's native-`question` answer as a host-observed one-use receipt (`attested: true`, `callID`, `selectedLabel`, `recordedAt`) consumed by `workflow_spec_approve` / `workflow_plan_approve` / `workflow_plan_menu` — no evidence argument exists, and delegated worker status comes from host session parentage (`parentID`), never a caller `role` field. On Cursor, confirmations are policy-only (`attested: false`) and subagent-driven execution is rejected as unsupported.
16
+ - On Cursor, for every repository-scoped `workflow_*` call, pass the active Cursor workspace as `workspace_root`; never rely on the MCP process default.
17
+ - Use native `task` with only the built-in `explore` and `general` agents.
18
+
19
+ ## Flow gates (HARD)
20
+
21
+ - `wk-implement` refuses to run unless the plan is `approved` (flow.json) and the post-plan menu was presented.
22
+ - `wk-handoff` refuses to run unless both spec and plan are `approved`.
23
+ - Sequence is enforced by tools: `workflow_spec_approve`, `workflow_plan_approve`, `workflow_plan_menu` — never skip a step (the spec/plan self-review runs automatically inside the transition; only the final approval asks for your confirmation).
24
+
25
+ ## Setup
26
+
27
+ 0. Call `workflow_docs_validate` with the linked spec/plan paths. Hard-fail on any error before todos or branch setup.
28
+ 1. Call `workflow_sdd_context` with `<PLAN_PATH>` and initialize `todowrite` from returned tasks.
29
+ 2. Call `workflow_plan_tasks`; cache each top-level task's `section_text`.
30
+ 3. Mark IDs in `completed_task_ids` completed and never redispatch them.
31
+ 4. Call `workflow_resolve_branch`, then show the current branch, target branch, and stash behavior before any in-place checkout/setup mutation.
32
+ 5. Always use `question`: for a clean tree ask whether to proceed or cancel; for a dirty tree add the stash choice and describe what will be stashed.
33
+ 6. Call `workflow_branch_setup` with `confirmed: true` only after approval.
34
+
35
+ ## Remaining-task loop
36
+
37
+ For each top-level task absent from `completed_task_ids`:
38
+
39
+ 1. Mark it `in_progress` with `todowrite`.
40
+ 2. Create a working-state brief with `workflow_sdd_task_brief` and `confirmed: true`.
41
+ 3. Delegate read-only discovery, when needed, to an `explore` agent. Delegate implementation to a fresh `general` agent. Product changes follow TDD.
42
+ 4. Create a working-state diff with `workflow_sdd_review_package` and `confirmed: true`.
43
+ 5. Delegate spec-compliance review and code-quality review to separate `general` agents.
44
+ 6. **Blocking** findings (Critical, Important, or spec-compliance) may trigger at most **two** fix+re-review rounds per task. **Advisory** findings (Minor, style, YAGNI, taste) never pause the loop — append them to `<SDD_DIR>/advisories.md`.
45
+ 7. Append the validated ledger entry with `workflow_sdd_append_progress` and `confirmed: true`; mark the todo completed.
46
+
47
+ ## Final gate
48
+
49
+ Run a separate full-branch code review, then `workflow_verify`. Present the full `<SDD_DIR>/advisories.md` roll-up once, then use native `question` so the user can choose which advisory items to fix, discuss, or discard. Report exact check results and never infer success. Use `workflow_git_context` for a commit preview and load `wk-commit` through `skill` for an approved commit. If working state contains a stash reference, preview reapplication through `question`, then call `workflow_branch_setup` with `confirmed: true` after approval.
50
+
51
+ ## Task order
52
+
53
+ <TASK_LIST>
54
+
55
+ ## Quality gate (HARD)
56
+
57
+ - Specs/plans are written from `templates/spec-template.md` / `templates/plan-template.md`.
58
+ - After `workflow_docs_validate`, surface `quality` findings (spec scan). Hard findings (missing required section, missing CA-XX) block task start unless the user explicitly waives them. Warnings are advisory.
@@ -0,0 +1 @@
1
+ {{greetingText}}
@@ -0,0 +1,3 @@
1
+ ## Adjunto capturas
2
+
3
+ ## Archivos adjuntos
@@ -0,0 +1,8 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ indent_style = space
8
+ indent_size = 2
@@ -0,0 +1,3 @@
1
+ * text=auto
2
+ *.md text
3
+ *.bat text eol=crlf
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Fixed
@@ -0,0 +1,3 @@
1
+ # Contributing
2
+
3
+ <!-- How to report issues, propose changes, and the review process. -->
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) <YEAR> <HOLDER>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # <PROJECT>
2
+
3
+ <!-- Describe the project: what it does, how to run it, how to contribute. -->
@@ -0,0 +1,6 @@
1
+ # Actualización
2
+ {{greetingSection}}
3
+ {{projectSection}}
4
+ {{userNotesSection}}
5
+ {{progressSection}}
6
+ {{gitCommitsSection}}
@@ -0,0 +1,25 @@
1
+ # <Feature> Implementation Plan
2
+
3
+ > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
4
+
5
+ **Spec:** `docs/<slug>/spec.md`
6
+ **Branch:** `feature/<slug>`
7
+
8
+ **Goal:** <one sentence>
9
+
10
+ ## Global Constraints
11
+
12
+ - <project-wide requirements, one line each>
13
+
14
+ ---
15
+
16
+ ### Task N: <Component>
17
+
18
+ - [ ] **Step 1: <action>**
19
+
20
+ <!-- per-task criteria: how this task is verified -->
21
+ **Criteria:** <verifiable check>
22
+
23
+ | Status | Task |
24
+ | --- | --- |
25
+ | pending | N: <Component> |
@@ -0,0 +1,51 @@
1
+ # Spec: <feature>
2
+
3
+ **Branch:** `feature/<slug>`
4
+
5
+ ## Context
6
+
7
+ <!-- Why does this exist? What problem does it solve? 1-3 sentences. -->
8
+
9
+ ## Goals
10
+
11
+ - <!-- measurable, one per bullet -->
12
+
13
+ ## Non-goals
14
+
15
+ - <!-- explicitly out of scope -->
16
+
17
+ ## Architecture
18
+
19
+ <!-- REQUIRED if this spec has flows or architecture: render a mermaid diagram (workflow_present_flow). -->
20
+ ```mermaid
21
+ flowchart TD
22
+ A[Start] --> B[Step]
23
+ ```
24
+
25
+ <!-- REQUIRED if this spec touches UI: render an ASCII wireframe (workflow_present_ascii). -->
26
+ ```text
27
+ ┌──────────────┐
28
+ │ Header │
29
+ └──────────────┘
30
+ ```
31
+
32
+ ## Data flow / contracts
33
+
34
+ <!-- REQUIRED when there is a glossary, scope comparison, or contracts: use markdown tables. -->
35
+ | Term | Meaning |
36
+ | --- | --- |
37
+ | <term> | <meaning> |
38
+
39
+ ## Acceptance criteria
40
+
41
+ <!-- REQUIRED: enumerable, each verifiable. Numbered CA-01, CA-02, ... -->
42
+ - CA-01 …
43
+ - CA-02 …
44
+
45
+ ## Decisions
46
+
47
+ - D-01 …
48
+
49
+ ## Future work
50
+
51
+ - …