@yandy-r/ycc-opencode 6.1.1 → 6.2.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 (119) hide show
  1. package/README.md +7 -3
  2. package/agents/code-researcher.md +3 -3
  3. package/agents/feature-researcher.md +1 -1
  4. package/agents/implementor.md +4 -4
  5. package/agents/pr-comment-fixer.md +1 -1
  6. package/agents/release-fix-applier.md +1 -1
  7. package/agents/review-fixer.md +1 -1
  8. package/package.json +1 -1
  9. package/shared/references/artifact-store.md +613 -0
  10. package/shared/references/branch-prep.md +2 -0
  11. package/shared/references/forge-detection.md +3 -2
  12. package/shared/references/review-artifact-format.md +13 -6
  13. package/shared/references/review-checklist.md +3 -2
  14. package/shared/references/review-dispatch.md +15 -10
  15. package/shared/references/target-capability-matrix.md +42 -6
  16. package/shared/references/visual-mode.md +19 -13
  17. package/shared/references/worktree-strategy.md +12 -8
  18. package/shared/scripts/artifact-body.sh +71 -0
  19. package/shared/scripts/artifact-store-pointer.sh +245 -0
  20. package/shared/scripts/ci-monitor.sh +9 -4
  21. package/shared/scripts/collect-linear-keys.sh +77 -0
  22. package/shared/scripts/lib/ci-classify.sh +13 -10
  23. package/shared/scripts/lib/forge.sh +13 -4
  24. package/shared/scripts/prepare-feature-branch.sh +96 -10
  25. package/shared/scripts/release-ci-monitor.sh +2 -2
  26. package/shared/scripts/report-bundle-drift.sh +1 -1
  27. package/shared/scripts/resolve-artifact-store.sh +636 -0
  28. package/shared/scripts/validate-file-paths.sh +11 -4
  29. package/skills/blueprint/SKILL.md +48 -13
  30. package/skills/clean/SKILL.md +1 -1
  31. package/skills/clean/scripts/detect-project-type.sh +2 -2
  32. package/skills/clean/scripts/generate-report.sh +34 -5
  33. package/skills/clean/scripts/validate-safety.sh +9 -6
  34. package/skills/code-report/SKILL.md +26 -14
  35. package/skills/code-report/scripts/check-prerequisites.sh +72 -12
  36. package/skills/code-report/templates/report-structure.md +1 -1
  37. package/skills/code-review/SKILL.md +68 -17
  38. package/skills/code-review/references/pr-procedure.md +28 -15
  39. package/skills/compatibility-audit/scripts/audit-target-features.sh +1 -1
  40. package/skills/deep-research/SKILL.md +28 -5
  41. package/skills/deep-research/references/completion-summary-template.md +3 -2
  42. package/skills/deep-research/scripts/validate-research.sh +8 -2
  43. package/skills/feature-research/SKILL.md +48 -25
  44. package/skills/feature-research/scripts/validate-research.sh +51 -12
  45. package/skills/feature-research/scripts/validate-spec.sh +53 -22
  46. package/skills/feature-research/templates/research-agents.md +15 -14
  47. package/skills/feature-research/templates/spec-structure.md +5 -0
  48. package/skills/formatters/scripts/apply-aliases.sh +3 -1
  49. package/skills/formatters/scripts/apply-ci.sh +3 -1
  50. package/skills/git-workflow/SKILL.md +2 -1
  51. package/skills/git-workflow/references/pr-creation.md +10 -0
  52. package/skills/git-workflow/scripts/analyze-changes.sh +21 -11
  53. package/skills/git-workflow/scripts/create-pr.sh +51 -6
  54. package/skills/git-workflow/scripts/validate-commit.sh +26 -14
  55. package/skills/hooks-workflow/scripts/verify-hooks.sh +1 -1
  56. package/skills/implement-plan/SKILL.md +35 -16
  57. package/skills/implement-plan/references/agent-task-prompt.md +8 -5
  58. package/skills/implement-plan/references/linear-sync.md +20 -0
  59. package/skills/implement-plan/references/output-formats.md +17 -2
  60. package/skills/implement-plan/references/plan-inputs.md +23 -4
  61. package/skills/implement-plan/scripts/check-prerequisites.sh +95 -49
  62. package/skills/implement-plan/scripts/parse-dependencies.sh +10 -10
  63. package/skills/init/SKILL.md +77 -42
  64. package/skills/init/references/flag-reference.md +41 -17
  65. package/skills/init/references/project-profile-heuristics.md +3 -0
  66. package/skills/init/references/template-library.md +15 -5
  67. package/skills/init/scripts/profile-project.sh +26 -0
  68. package/skills/init/scripts/render-template.py +2 -2
  69. package/skills/init/templates/AGENTS.md.tmpl +6 -0
  70. package/skills/init/templates/git/gitignore.tmpl +5 -0
  71. package/skills/orchestrate/SKILL.md +17 -2
  72. package/skills/parallel-plan/SKILL.md +14 -8
  73. package/skills/plan/SKILL.md +18 -2
  74. package/skills/plan/references/planning-tracks.md +1 -1
  75. package/skills/plan-workflow/SKILL.md +67 -32
  76. package/skills/plan-workflow/references/checkpoint-messages.md +23 -14
  77. package/skills/plan-workflow/references/plan-structure.md +1 -1
  78. package/skills/plan-workflow/references/planning-agents.md +11 -9
  79. package/skills/plan-workflow/references/research-agents-optimized.md +12 -10
  80. package/skills/plan-workflow/references/research-agents.md +11 -10
  81. package/skills/plan-workflow/scripts/check-prerequisites.sh +50 -11
  82. package/skills/plan-workflow/scripts/check-state.sh +53 -9
  83. package/skills/plan-workflow/scripts/persist-or-fail.sh +21 -7
  84. package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +28 -14
  85. package/skills/plan-workflow/scripts/validate-research-artifacts.sh +35 -10
  86. package/skills/plan-workflow/scripts/validate-shared.sh +56 -15
  87. package/skills/plan-workflow/scripts/validate-workflow-plan.sh +48 -17
  88. package/skills/pr-autofix/SKILL.md +19 -4
  89. package/skills/pr-autofix/references/output-templates.md +3 -2
  90. package/skills/pr-autofix/scripts/fetch-pr-comments.sh +1 -2
  91. package/skills/pr-autofix/scripts/post-summary.sh +1 -2
  92. package/skills/pr-autofix/scripts/resolve-thread.sh +3 -4
  93. package/skills/prp-implement/SKILL.md +31 -16
  94. package/skills/prp-implement/references/agent-task-prompt.md +5 -2
  95. package/skills/prp-implement/references/detection.md +4 -1
  96. package/skills/prp-implement/references/linear-sync.md +25 -0
  97. package/skills/prp-implement/references/report-output.md +15 -2
  98. package/skills/prp-plan/SKILL.md +62 -30
  99. package/skills/prp-plan/references/enhanced-researchers.md +8 -9
  100. package/skills/prp-plan/scripts/validate-prp-plan.sh +42 -18
  101. package/skills/prp-pr/SKILL.md +14 -1
  102. package/skills/prp-prd/SKILL.md +21 -9
  103. package/skills/prp-spec/SKILL.md +30 -20
  104. package/skills/quick-fix/SKILL.md +6 -4
  105. package/skills/quick-review/SKILL.md +62 -25
  106. package/skills/release-model/scripts/collect-signals.sh +9 -3
  107. package/skills/releaser/scripts/publish-release.sh +6 -3
  108. package/skills/research-to-issues/SKILL.md +33 -14
  109. package/skills/research-to-issues/scripts/validate-prerequisites.sh +45 -23
  110. package/skills/research-to-issues/templates/task-issue.md +4 -0
  111. package/skills/research-to-issues/templates/tracking-issue.md +3 -0
  112. package/skills/review-fix/SKILL.md +96 -14
  113. package/skills/review-fix/references/fix-report.md +10 -10
  114. package/skills/review-fix/references/plan.md +5 -2
  115. package/skills/shared-context/SKILL.md +14 -11
  116. package/skills/visual-plan/SKILL.md +26 -8
  117. package/skills/visual-recap/SKILL.md +1 -1
  118. package/skills/write-docs/scripts/audit-documentation.sh +44 -10
  119. package/skills/write-docs/scripts/generate-doc-index.sh +10 -3
package/README.md CHANGED
@@ -1,19 +1,23 @@
1
1
  # @yandy-r/ycc-opencode
2
2
 
3
3
  Experimental, opt-in [OpenCode](https://opencode.ai) V2 plugin carrying the ycc bundle
4
- (version 6.1.1). It is unlisted and never the default install: the
4
+ (version 6.2.0). It is unlisted and never the default install: the
5
5
  `install.sh --target opencode` file copy remains the primary path.
6
6
 
7
7
  Requires OpenCode `>=2.0.30` (V2 plugin API; V1 hook plugins are not supported).
8
8
 
9
9
  ## Enable
10
10
 
11
- Add the package to the V2 `plugins` array in your own `opencode.json`:
11
+ Add the package to the V2 `plugins` array in your own `opencode.json`, pinned to an exact release:
12
12
 
13
13
  ```json
14
- { "plugins": ["@yandy-r/ycc-opencode"] }
14
+ { "plugins": ["@yandy-r/ycc-opencode@6.2.0"] }
15
15
  ```
16
16
 
17
+ Pin the version instead of using the bare name. Right after a release, the registry can briefly serve
18
+ stale `latest` metadata, and early placeholder versions of this package (`0.0.0-*`) were never
19
+ loadable plugins. Bump the pin when you upgrade.
20
+
17
21
  A local checkout loads with a directory entry (`"file:///abs/path/to/packages/opencode/ycc-opencode"`),
18
22
  not the `index.js` file.
19
23
 
@@ -54,7 +54,7 @@ When tasked with codebase research, you will:
54
54
  1. **Conduct Wide-Scope Analysis**: Systematically explore the codebase structure, focusing on understanding the overall architecture, data flow patterns, and component relationships specific to your research focus. Pay special attention to existing patterns that relate to the research objective.
55
55
  2. **Identify Edge Cases and Gotchas**: Actively search for unusual implementations, workarounds, legacy code patterns, and potential pitfalls. Look for comments that explain "why" decisions were made, especially those that seem counterintuitive.
56
56
  3. **Document Architectural Patterns**: Catalog recurring design patterns, architectural decisions, and structural approaches used throughout the codebase.
57
- 4. **Generate Research Report**: Create a concise markdown document at docs/internal-docs/[relevant-name].md:
57
+ 4. **Generate Research Report**: Create a concise markdown report at the caller-supplied path, or return it inline when no path is supplied:
58
58
  - **Overview**: Brief summary of key findings (2-3 sentences)
59
59
  - **Relevant Files**: List of important file paths with one-line descriptions
60
60
  - **Architectural Patterns**: Identified design patterns and architectural decisions (brief bullet points)
@@ -71,7 +71,7 @@ When tasked with codebase research, you will:
71
71
  - Keep descriptions concise and actionable
72
72
  - Focus on linking to relevant code rather than reproducing it
73
73
  - Highlight patterns that would impact new feature development
74
- As a quick example format, you might make the file `docs/features/custom-feature.md`
74
+ Use this example report structure (the caller chooses any output path):
75
75
 
76
76
  ```md
77
77
  # Title
@@ -98,5 +98,5 @@ When tasked with codebase research, you will:
98
98
  - External documentation, or file paths to other internal documentation
99
99
  ```
100
100
 
101
- You do NOT modify source code or create executable/source files. You DO write your research and analysis findings to the markdown file path the caller provides — that is your primary deliverable. If the caller provides a target markdown path, write your report there using the Write tool without asking. Only ask if no path is provided. Your sole focus is thorough research and clear documentation of findings.
101
+ You do NOT modify source code or create executable/source files. Write findings only to the markdown file path the caller provides, using the Write tool without asking. With no supplied path, return findings inline without creating a file or asking for a destination. The caller owns artifact-store resolution and persistence. Your sole focus is thorough research and clear documentation of findings.
102
102
  Your research reports should be comprehensive yet concise, focusing on actionable insights that will help developers understand the codebase architecture and make informed implementation decisions.
@@ -68,7 +68,7 @@ When researching for a new feature, you will:
68
68
 
69
69
  ### 3. **Create Planning Document**
70
70
 
71
- Generate a concise research report at `plans/[feature-name]/[topic-name].md`:
71
+ Generate a concise research report using the structure below. If the caller supplies a target markdown path, write only to that path using the Write tool and return the findings inline. With no supplied path, return the report inline without creating a file; the caller owns artifact-store resolution and persistence.
72
72
 
73
73
  ```markdown
74
74
  # [Feature/Topic Name] Research
@@ -47,17 +47,17 @@ You implement specific software changes as instructed. You do NOT:
47
47
  - Add features not explicitly requested
48
48
  - Attempt to solve broader architectural problems
49
49
 
50
+ Never call Linear MCP or other external tracker tools; report status only to the orchestrator. Never edit plan files or their frontmatter.
51
+
50
52
  ## Working Directory
51
53
 
52
54
  If your task prompt contains a `Working directory: <path>` line, treat that path
53
55
  as your repo root for ALL file operations. Specifically:
54
56
 
55
- - Every Read / Write / Edit / Glob / Grep must target paths underneath this directory.
57
+ - Every Write / Edit must target paths underneath this directory. Read / Glob / Grep do too, except explicitly supplied absolute plan/context paths are read-only inputs and may live in the invoking checkout's artifact cache.
56
58
  - Every Bash `cd`, `git`, or path-dependent command must operate relative to this
57
59
  directory (use `git -C <path>` or `cd` at the top of the command).
58
- - Never mix paths from the parent repo clone with the working directory. The two
59
- are distinct git checkouts; mixing them corrupts the single-worktree setup the
60
- orchestrating skill selected.
60
+ - Never mix implementation writes between the parent repo clone and the working directory. They are distinct git checkouts; only explicitly supplied read-only plan/context paths may cross that boundary.
61
61
  - In the current contract, the working directory is usually the shared feature
62
62
  worktree (`<worktree-root>/<repo>-<feature>/`) used by every task in the run.
63
63
  `<worktree-root>` is the active runtime's repo-local worktree root; the
@@ -523,7 +523,7 @@ Validate `PROJECT TYPE-CHECK COMMAND` against this allowlist before execution:
523
523
 
524
524
  If the value starts with `SKIP (` and ends with `)`, skip validation and report `TYPE-CHECK: Skipped (<reason>)`.
525
525
 
526
- If the value is not allowlisted and is not a `SKIP (...)` token, do NOT run it (on OpenCode, native rules deny any other shell command). Report `STATUS: Failed` with `BLOCKER: type-check command not allowlisted — <value>`.
526
+ If the value is not allowlisted and is not a `SKIP (...)` token, do NOT run it (OpenCode and OMP block any other shell command natively; on other runtimes this rule is yours to keep). Report `STATUS: Failed` with `BLOCKER: type-check command not allowlisted — <value>`.
527
527
 
528
528
  Execute the allowlisted command via Bash. If type-check passes for your modified file: report success.
529
529
 
@@ -513,7 +513,7 @@ If `PROJECT TYPE-CHECK COMMAND` or `PROJECT BUILD COMMAND` is included and appli
513
513
  | Go | `go vet ./...` | `go build ./...` |
514
514
  | Python | `pytest` / `python -m mypy <file>` / `python3 -m mypy <file>` | — |
515
515
 
516
- Do not run a provided command outside this table (on OpenCode, native rules deny any other shell command). Return `RESULT: cannot-fix` with `REASON: command not allowlisted — <value>`.
516
+ Do not run a provided command outside this table (OpenCode and OMP block any other shell command natively; on other runtimes this rule is yours to keep). Return `RESULT: cannot-fix` with `REASON: command not allowlisted — <value>`.
517
517
 
518
518
  ### 5. Return one of two response shapes
519
519
 
@@ -521,7 +521,7 @@ other non-allowlisted value as safe.
521
521
 
522
522
  Execute the validated command via a safe program+args API (for example, `spawn` or `execFile`), never via shell-string interpolation. If file scoping is used, pass the filename as a separate argument token.
523
523
 
524
- If `PROJECT TYPE-CHECK COMMAND` is not allowlisted, do NOT run it (on OpenCode, native rules deny any other shell command). Report `STATUS: Failed` with `BLOCKER: type-check command not allowlisted — <value>`.
524
+ If `PROJECT TYPE-CHECK COMMAND` is not allowlisted, do NOT run it (OpenCode and OMP block any other shell command natively; on other runtimes this rule is yours to keep). Report `STATUS: Failed` with `BLOCKER: type-check command not allowlisted — <value>`.
525
525
 
526
526
  If the type-check passes for your modified file: report success.
527
527
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yandy-r/ycc-opencode",
3
- "version": "6.1.1",
3
+ "version": "6.2.0",
4
4
  "description": "Experimental opt-in OpenCode V2 plugin registering the ycc bundle (skills, agents, commands, MCP servers, and session instructions) through its setup hook. The file-copy install remains the primary path.",
5
5
  "type": "module",
6
6
  "main": "./index.js",