@yandy-r/ycc-opencode 6.3.1 → 6.5.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 (38) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/registration.json +11 -0
  4. package/shared/references/branching-model.md +2 -1
  5. package/shared/references/worktree-strategy.md +4 -12
  6. package/shared/scripts/lib/ci-classify.sh +2 -2
  7. package/shared/scripts/release-feature-sets.sh +18 -0
  8. package/shared/scripts/release_feature_sets.py +232 -0
  9. package/shared/scripts/setup-worktree.sh +2 -69
  10. package/skills/bundle-author/references/surface-map.md +1 -1
  11. package/skills/bundle-author/references/when-not-to-scaffold.md +1 -1
  12. package/skills/bundle-release/SKILL.md +22 -5
  13. package/skills/bundle-release/references/release-checklist.md +9 -1
  14. package/skills/bundle-release/references/version-policy.md +11 -4
  15. package/skills/formatters/SKILL.md +2 -1
  16. package/skills/formatters/references/flag-reference.md +8 -4
  17. package/skills/formatters/references/templates/lint-autofix.yml.tmpl +184 -18
  18. package/skills/formatters/references/templates/readme-section.md.tmpl +1 -1
  19. package/skills/formatters/scripts/bundle/style.sh +2 -2
  20. package/skills/git-cleanup/SKILL.md +4 -5
  21. package/skills/init/references/conventional-commits.md +8 -1
  22. package/skills/init/references/template-library.md +1 -1
  23. package/skills/init/templates/git/gitmessage.tmpl +2 -1
  24. package/skills/mcp-parity/SKILL.md +303 -0
  25. package/skills/mcp-parity/references/inventory-format.md +171 -0
  26. package/skills/mcp-parity/references/linear-sync.md +194 -0
  27. package/skills/mcp-parity/references/milestones-priority.md +91 -0
  28. package/skills/mcp-parity/references/research-agents.md +122 -0
  29. package/skills/mcp-parity/scripts/capability_diff.py +525 -0
  30. package/skills/mcp-parity/scripts/detect-api-surface.sh +109 -0
  31. package/skills/mcp-parity/scripts/openapi_inventory.py +253 -0
  32. package/skills/mcp-parity/templates/capability-issue.md +38 -0
  33. package/skills/mcp-parity/templates/foundation-issue.md +35 -0
  34. package/skills/release-model/templates/RELEASING.md.tmpl +2 -1
  35. package/skills/releaser/SKILL.md +5 -1
  36. package/skills/releaser/references/release-preparation.md +34 -15
  37. package/shared/scripts/merge-children.sh +0 -82
  38. package/skills/write-docs/templates/docs-readme.md +0 -34
@@ -0,0 +1,91 @@
1
+ # Milestones, priority, and labels
2
+
3
+ ## Contents
4
+
5
+ - Milestones
6
+ - Milestone assignment
7
+ - Priority
8
+ - Labels
9
+ - Foundation issues
10
+
11
+ ## Milestones
12
+
13
+ Every parity Project has the same five milestones, created once and reused by name.
14
+ Never rename or delete them; on sync, create only the missing ones.
15
+
16
+ | Milestone | Holds |
17
+ | ------------------------ | ------------------------------------------------------------------------ |
18
+ | `M1 Foundation` | Server scaffold, transport, auth, error/pagination mapping, test harness |
19
+ | `M2 Read parity` | Non-mutating tools and all resources |
20
+ | `M3 Write parity` | Mutating, non-destructive tools |
21
+ | `M4 Destructive & admin` | Destructive tools, `admin`/`service` auth tools, prompts |
22
+ | `M5 Parity guardrails` | CI parity check, docs, release and distribution |
23
+
24
+ Milestone descriptions: one sentence from the table plus "Managed by mcp-parity."
25
+ Do not set target dates; people own scheduling.
26
+
27
+ ## Milestone assignment
28
+
29
+ Apply the first matching rule:
30
+
31
+ 1. Foundation work → `M1 Foundation`; guardrails, docs, release → `M5 Parity guardrails`.
32
+ 2. `destructive: true`, or `auth` is `admin` or `service`, or `kind: prompt` →
33
+ `M4 Destructive & admin`.
34
+ 3. `mutating: true` → `M3 Write parity`.
35
+ 4. Everything else → `M2 Read parity`.
36
+
37
+ A capability found on a sync run uses the same rules, even when its milestone's
38
+ other issues are done. Parity is the goal, not the milestone date.
39
+
40
+ ## Priority
41
+
42
+ Linear priority values: 1 Urgent, 2 High, 3 Medium, 4 Low.
43
+
44
+ | Work | Priority |
45
+ | -------------------------------------------------------------------------- | -------- |
46
+ | Server scaffold, transport, auth | 1 Urgent |
47
+ | Error/pagination mapping, test harness, parity guardrail | 2 High |
48
+ | Read tools/resources on the app's core entities | 2 High |
49
+ | Write tools on core entities; changed-contract updates for done issues | 3 Medium |
50
+ | Other read and write tools | 3 Medium |
51
+ | Destructive and admin tools, prompts, docs, release | 4 Low |
52
+ | Removal of an MCP tool whose capability is gone (live tool lies to agents) | 2 High |
53
+
54
+ **Core entities** are the 3-5 areas with the most capabilities, or the ones the
55
+ README and API docs lead with. Name them in the plan output so the user can disagree.
56
+ Set priority only on create. On sync, never change the priority of an existing issue.
57
+
58
+ ## Labels
59
+
60
+ Ensure these team issue labels exist (create missing ones; never rename or delete):
61
+
62
+ - `mcp-parity`: on every issue this skill creates. Lookup uses it.
63
+ - `mcp:tool`, `mcp:resource`, `mcp:prompt`: the capability kind.
64
+ - `mcp:foundation`: foundation and guardrail issues.
65
+ - `ARTIFACT_LINEAR_LABEL` (for example `repo:acme-api`) when set; also apply it to
66
+ the Project.
67
+
68
+ Pass labels by name. Use `addLabels` when editing an existing issue so labels people
69
+ added survive.
70
+
71
+ ## Foundation issues
72
+
73
+ Create the ones that apply, skipping anything the existing MCP server already
74
+ provides. Body template: `templates/foundation-issue.md`.
75
+
76
+ | Key | Title | Milestone | Priority |
77
+ | ------------------- | -------------------------------------------------------------- | --------- | -------- |
78
+ | `scaffold` | Scaffold the MCP server package with the official SDK | M1 | 1 |
79
+ | `transport` | Support the chosen transport(s) (stdio and/or Streamable HTTP) | M1 | 1 |
80
+ | `auth` | Authenticate MCP clients and reuse the app's authorization | M1 | 1 |
81
+ | `errors-pagination` | Map app errors and pagination to MCP results | M1 | 2 |
82
+ | `test-harness` | Add an MCP contract test harness | M1 | 2 |
83
+ | `parity-guardrail` | Fail CI when an API capability has no MCP counterpart | M5 | 2 |
84
+ | `docs-release` | Document and ship the MCP server | M5 | 4 |
85
+
86
+ `scaffold` blocks `transport`, `auth`, and `test-harness`. To keep the graph
87
+ readable, `auth` and `errors-pagination` each block only the highest-priority issue
88
+ of M2, M3, and M4 (one relation per milestone), not every capability issue. The
89
+ `parity-guardrail` issue body must describe the check concretely for this repo: the
90
+ source of truth for capabilities (spec file or route registry), the MCP tool list,
91
+ and the id mapping in the manifest.
@@ -0,0 +1,122 @@
1
+ # Research agents
2
+
3
+ ## Contents
4
+
5
+ - Shared rules
6
+ - 1. Surface inventory
7
+ - 2. Architecture and existing MCP
8
+ - 3. MCP practice
9
+ - Large repositories
10
+
11
+ Dispatch these with the `subagent` tool in one message so they run in parallel. Use the
12
+ Claude agent types shown; on runtimes without them, use the closest read-only
13
+ researcher. Each prompt below is a template: fill the `{…}` values.
14
+
15
+ ## Shared rules
16
+
17
+ Put these lines in every prompt:
18
+
19
+ ```text
20
+ You are read-only. Do not edit files, run builds, or call any tracker or Linear tool.
21
+ Inventory root: {ROOT}. Ignore generated bundles, vendored code, build output, and
22
+ test fixtures unless they are the only definition of a capability.
23
+ Return your result in the exact format requested; the parent parses it.
24
+ If something is ambiguous, return the options and your recommendation; do not ask.
25
+ ```
26
+
27
+ ## 1. Surface inventory
28
+
29
+ Agent type: `codebase-research-analyst`.
30
+
31
+ ```text
32
+ Goal: list every capability a client can invoke in this app, so an MCP server can
33
+ mirror it one-to-one.
34
+
35
+ Surface hints from a scanner (verify, do not trust):
36
+ {surface.tsv}
37
+
38
+ {On sync runs:} Existing capability ids and stored contracts from the last run.
39
+ Reuse an id when it is the same capability, even if it moved or was renamed, and
40
+ copy the stored spelling of unchanged inputs/outputs so fingerprints stay stable:
41
+ {id → contract list}
42
+
43
+ {When a spec-first inventory exists:} A deterministic inventory was generated from
44
+ {spec path}: {N} operations, ids {id list}. Do not re-list them. Verify a sample
45
+ against the code, then return only capabilities the spec misses (CLI commands,
46
+ GraphQL/RPC surfaces, undocumented routes) and spec ids that are not real client
47
+ capabilities (internal, dead, or feature-flagged off), with reasons.
48
+
49
+ Steps:
50
+ 1. Prefer contracts: OpenAPI, GraphQL schema, proto files, tRPC routers. Read code
51
+ only where no contract exists or the contract is stale versus the code.
52
+ 2. Read route registration, controllers, resolvers, RPC services, and CLI command
53
+ definitions. Follow mounted routers and prefixes to full paths.
54
+ 3. For each capability, record the fields in the inventory schema below, including
55
+ normalized inputs (sorted keys, `?` for optional), outputs, mutating,
56
+ destructive, and auth.
57
+ 4. Apply the exclusion list. Report what you excluded and why.
58
+
59
+ Inventory schema and id rules: {paste inventory-format.md > Inventory and Capability ids}
60
+
61
+ Return:
62
+ - A JSON block: {"schema": 1, "capabilities": [...]}
63
+ - A short list of exclusions.
64
+ - Open questions (ambiguous ownership, dead routes, feature-flagged routes).
65
+ ```
66
+
67
+ ## 2. Architecture and existing MCP
68
+
69
+ Agent type: `code-explorer`.
70
+
71
+ ```text
72
+ Goal: tell the planner how an MCP server fits this repository.
73
+
74
+ Answer with evidence (file:line):
75
+ 1. Language, framework, runtime, package manager, and test framework.
76
+ 2. Is there an MCP server already (SDK imports, .mcp.json, server.json)? If yes:
77
+ which tools/resources/prompts it exposes, each mapped to the app operation it
78
+ calls, and whether its inputs match that operation.
79
+ 3. How the app authenticates callers (sessions, API keys, OAuth, service tokens)
80
+ and how authorization is checked. Which layer should an MCP server call: the HTTP
81
+ API, an internal service layer, or an SDK/client package?
82
+ 4. Error model (error types, status codes) and pagination model.
83
+ 5. Where a server should live: new package, existing service, or separate repo
84
+ folder, following repo conventions.
85
+ 6. How CI runs tests, for the parity guardrail.
86
+
87
+ Return:
88
+ - A JSON block: {"covered": [{"operation": "...", "mcpName": "...", "inputsMatch": true}]}
89
+ where `operation` uses the same handle format as the inventory (`GET /v1/users`).
90
+ - A short architecture brief covering 1-6.
91
+ ```
92
+
93
+ ## 3. MCP practice
94
+
95
+ Agent type: `research-specialist` (web access), or `library-docs-writer`
96
+ when context7 is available.
97
+
98
+ ```text
99
+ Goal: current, sourced guidance for building an MCP server in {LANGUAGE}/{FRAMEWORK}.
100
+
101
+ Find, with links and dates:
102
+ 1. The latest MCP specification revision and any changes that matter for servers.
103
+ 2. The official SDK for {LANGUAGE} and its current stable version.
104
+ 3. Transport choice: stdio for local use versus Streamable HTTP for remote use, and
105
+ when each fits {deployment from agent 2 if known}.
106
+ 4. Authorization for remote servers (the spec's OAuth-based flow) and how to reuse
107
+ the app's existing auth.
108
+ 5. Tool design: naming, input schemas, tool annotations (read-only, destructive,
109
+ idempotent, open-world hints), output and structured content, pagination, and
110
+ error reporting.
111
+ 6. Testing tools (MCP Inspector or SDK test clients).
112
+
113
+ Return a brief of at most 40 lines, every claim with a source link. Mark anything
114
+ you could not verify.
115
+ ```
116
+
117
+ ## Large repositories
118
+
119
+ When `surface.tsv` lists more than about 40 route files or several services, split
120
+ researcher 1 by area or service: one agent per group, each with the same prompt and
121
+ only its files. Merge their JSON, then de-duplicate ids. Keep the total at 6 agents
122
+ or fewer.