kibi-cursor 0.6.0 → 1.0.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 (97) hide show
  1. package/.cursor-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +181 -0
  3. package/README.md +28 -10
  4. package/agent-plugin/plugin.json +1 -1
  5. package/agent-plugin/skills/kibi-bootstrap/SKILL.md +58 -0
  6. package/agent-plugin/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  7. package/agent-plugin/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  8. package/agent-plugin/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  9. package/agent-plugin/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  10. package/agent-plugin/skills/kibi-freshness/SKILL.md +40 -10
  11. package/agent-plugin/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  12. package/agent-plugin/skills/kibi-freshness/resources/operation-access.md +6 -0
  13. package/agent-plugin/skills/kibi-freshness/resources/source-authoring.md +7 -0
  14. package/agent-plugin/skills/kibi-traceability/SKILL.md +47 -47
  15. package/agent-plugin/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  16. package/agent-plugin/skills/kibi-traceability/resources/operation-access.md +5 -0
  17. package/agent-plugin/skills/kibi-traceability/resources/source-authoring.md +6 -0
  18. package/agent-plugin/skills/kibi-traceability/resources/traceability.md +8 -0
  19. package/agent-plugin/skills/kibi-usage/SKILL.md +138 -237
  20. package/agent-plugin/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  21. package/agent-plugin/skills/kibi-usage/resources/kb-improvement.md +38 -0
  22. package/agent-plugin/skills/kibi-usage/resources/operation-access.md +36 -38
  23. package/agent-plugin/skills/kibi-usage/resources/proof.md +105 -0
  24. package/agent-plugin/skills/kibi-usage/resources/relationship-directions.md +3 -3
  25. package/agent-plugin/skills/kibi-usage/resources/source-authoring.md +31 -0
  26. package/agent-plugin/skills/kibi-usage/resources/workflows.md +57 -4
  27. package/bin/launch-kibi-mcp.d.mts +18 -0
  28. package/bin/launch-kibi-mcp.mjs +378 -0
  29. package/commands/kibi-bootstrap.md +19 -0
  30. package/dist/.cursor-plugin/plugin.json +1 -1
  31. package/dist/bin/launch-kibi-mcp.d.mts +18 -0
  32. package/dist/bin/launch-kibi-mcp.mjs +378 -0
  33. package/dist/commands/kibi-bootstrap.md +19 -0
  34. package/dist/hook-input.d.ts +2 -0
  35. package/dist/hook-input.js +10 -0
  36. package/dist/hook-runner.js +34 -12
  37. package/dist/hook-state-storage.js +3 -0
  38. package/dist/hook-state.d.ts +2 -0
  39. package/dist/hook-state.js +3 -0
  40. package/dist/mcp.json +2 -2
  41. package/dist/messages.js +6 -1
  42. package/dist/path-policy.js +43 -1
  43. package/dist/rules/kibi-workflow.mdc +16 -1
  44. package/dist/skills/.canon-hash.json +22 -7
  45. package/dist/skills/kibi-bootstrap/SKILL.md +58 -0
  46. package/dist/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  47. package/dist/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  48. package/dist/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  49. package/dist/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  50. package/dist/skills/kibi-freshness/SKILL.md +40 -10
  51. package/dist/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  52. package/dist/skills/kibi-freshness/resources/operation-access.md +6 -0
  53. package/dist/skills/kibi-freshness/resources/source-authoring.md +7 -0
  54. package/dist/skills/kibi-traceability/SKILL.md +47 -47
  55. package/dist/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  56. package/dist/skills/kibi-traceability/resources/operation-access.md +5 -0
  57. package/dist/skills/kibi-traceability/resources/source-authoring.md +6 -0
  58. package/dist/skills/kibi-traceability/resources/traceability.md +8 -0
  59. package/dist/skills/kibi-usage/SKILL.md +138 -237
  60. package/dist/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  61. package/dist/skills/kibi-usage/resources/kb-improvement.md +38 -0
  62. package/dist/skills/kibi-usage/resources/operation-access.md +36 -38
  63. package/dist/skills/kibi-usage/resources/proof.md +105 -0
  64. package/dist/skills/kibi-usage/resources/relationship-directions.md +3 -3
  65. package/dist/skills/kibi-usage/resources/source-authoring.md +31 -0
  66. package/dist/skills/kibi-usage/resources/workflows.md +57 -4
  67. package/mcp.json +2 -2
  68. package/package.json +4 -3
  69. package/rules/kibi-workflow.mdc +16 -1
  70. package/skills/.canon-hash.json +22 -7
  71. package/skills/kibi-bootstrap/SKILL.md +58 -0
  72. package/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  73. package/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  74. package/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  75. package/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  76. package/skills/kibi-freshness/SKILL.md +40 -10
  77. package/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  78. package/skills/kibi-freshness/resources/operation-access.md +6 -0
  79. package/skills/kibi-freshness/resources/source-authoring.md +7 -0
  80. package/skills/kibi-traceability/SKILL.md +47 -47
  81. package/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  82. package/skills/kibi-traceability/resources/operation-access.md +5 -0
  83. package/skills/kibi-traceability/resources/source-authoring.md +6 -0
  84. package/skills/kibi-traceability/resources/traceability.md +8 -0
  85. package/skills/kibi-usage/SKILL.md +138 -237
  86. package/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  87. package/skills/kibi-usage/resources/kb-improvement.md +38 -0
  88. package/skills/kibi-usage/resources/operation-access.md +36 -38
  89. package/skills/kibi-usage/resources/proof.md +105 -0
  90. package/skills/kibi-usage/resources/relationship-directions.md +3 -3
  91. package/skills/kibi-usage/resources/source-authoring.md +31 -0
  92. package/skills/kibi-usage/resources/workflows.md +57 -4
  93. package/agent-plugin/skills/init-kibi/SKILL.md +0 -62
  94. package/commands/init-kibi.md +0 -21
  95. package/dist/commands/init-kibi.md +0 -21
  96. package/dist/skills/init-kibi/SKILL.md +0 -62
  97. package/skills/init-kibi/SKILL.md +0 -62
@@ -1,62 +0,0 @@
1
- ---
2
- id: init-kibi
3
- name: init-kibi
4
- description: Bootstrap and model knowledge safely using approved Kibi MCP initialization and mutation workflow.
5
- version: 1.0.0
6
- kibiCompatibility: "*"
7
- tags:
8
- - kibi
9
- - mcp
10
- - bootstrap
11
- - agent-guidance
12
- ---
13
- ## Goal
14
-
15
- Set up or refresh Kibi knowledge for the current branch through approved Kibi interfaces only. Maintain source-file traceability for every repository-backed claim, and require explicit operator approval before any mutation.
16
-
17
- ## Interface Selection
18
-
19
- 1. If approved Kibi MCP tools are visible, use the MCP route.
20
- 2. Otherwise, in a trusted workspace, use the canonical project-local CLI fallback: `npx --no-install kibi ...` or `bunx --no-install kibi ...`.
21
- 3. If neither approved MCP tools nor the project-local CLI are available, stop and tell the operator to enable or install Kibi for this workspace.
22
- 4. Never use a global fallback, an installing runner, or any route outside the approved Kibi interface.
23
-
24
- Use `kibi-usage/resources/operation-access.md` for the exact operation-to-route mapping. The CLI preview route accepts the same JSON object as `kb_autopilot_generate`:
25
-
26
- ```bash
27
- echo '{"maxCandidates":25,"minConfidence":0.8}' | npx --no-install kibi autopilot-generate --input -
28
- ```
29
-
30
- ## Capability Workflow
31
-
32
- - Generate a read-only bootstrap preview with `kb_autopilot_generate`, or the dedicated CLI route `autopilot-generate --input`.
33
- - Show the generated preview and obtain explicit approval before writes.
34
- - Apply reviewed entity creation or updates with `kb_upsert`, or `upsert --input`.
35
- - If cleanup is needed, use `kb_delete`, or `delete --input`, only after checking dependencies and obtaining approval for the specific removal.
36
- - Finish with `kb_check`, or `check --input`, to validate the branch snapshot.
37
-
38
- ## Guidance
39
-
40
- - Keep mutation requests explicit, small, and sequential.
41
- - Prefer source-linked entities so future `kb_query` lookups can verify repository context against source files.
42
- - Preserve traceability by linking facts, claims, scenarios, and tests to concrete project files whenever repository evidence supports it.
43
- - Do not read or edit files inside `.kb` directly; all changes go through the selected Kibi interface.
44
- - Ask at most four bounded context questions, and only when repository evidence is insufficient.
45
- - Stop at the documented operator repair boundary if the setup appears partial, inconsistent, or unsupported by the approved interface.
46
-
47
- ## Public Training Trajectories
48
-
49
- - `init-kibi-bootstrap-analysis-train-1`: Analyze the cold-start repository and produce a read-only bootstrap preview using only the public Kibi MCP surface.
50
- - `init-kibi-bootstrap-analysis-train-2`: Analyze the cold-start repository and produce a read-only bootstrap preview using only the public Kibi MCP surface.
51
- - `init-kibi-bounded-context-questions-train-1`: Ask only the bounded context questions needed before bootstrap synthesis using only the public Kibi MCP surface.
52
- - `init-kibi-bounded-context-questions-train-2`: Ask only the bounded context questions needed before bootstrap synthesis using only the public Kibi MCP surface.
53
- - `init-kibi-approval-sequential-writes-train-1`: Apply the approved bootstrap plan sequentially and finish with validation using only the public Kibi MCP surface.
54
- - `init-kibi-approval-sequential-writes-train-2`: Apply the approved bootstrap plan sequentially and finish with validation using only the public Kibi MCP surface.
55
- - `init-kibi-repair-escalation-train-1`: Identify the partial setup and stop at the documented operator repair boundary using only the public Kibi MCP surface.
56
- - `init-kibi-repair-escalation-train-2`: Identify the partial setup and stop at the documented operator repair boundary using only the public Kibi MCP surface.
57
-
58
- ## Training Data
59
-
60
- ```json
61
- [{"taskId":"init-kibi-bootstrap-analysis-train-1","family":"bootstrap-analysis","reflection":"Analyze the cold-start repository and produce a read-only bootstrap preview. This is train case 1; use only the public Kibi MCP surface."},{"taskId":"init-kibi-bootstrap-analysis-train-2","family":"bootstrap-analysis","reflection":"Analyze the cold-start repository and produce a read-only bootstrap preview. This is train case 2; use only the public Kibi MCP surface."},{"taskId":"init-kibi-bounded-context-questions-train-1","family":"bounded-context-questions","reflection":"Ask only the bounded context questions needed before bootstrap synthesis. This is train case 1; use only the public Kibi MCP surface."},{"taskId":"init-kibi-bounded-context-questions-train-2","family":"bounded-context-questions","reflection":"Ask only the bounded context questions needed before bootstrap synthesis. This is train case 2; use only the public Kibi MCP surface."},{"taskId":"init-kibi-approval-sequential-writes-train-1","family":"approval-sequential-writes","reflection":"Apply the approved bootstrap plan sequentially and finish with validation. This is train case 1; use only the public Kibi MCP surface."},{"taskId":"init-kibi-approval-sequential-writes-train-2","family":"approval-sequential-writes","reflection":"Apply the approved bootstrap plan sequentially and finish with validation. This is train case 2; use only the public Kibi MCP surface."},{"taskId":"init-kibi-repair-escalation-train-1","family":"repair-escalation","reflection":"Identify the partial setup and stop at the documented operator repair boundary. This is train case 1; use only the public Kibi MCP surface."},{"taskId":"init-kibi-repair-escalation-train-2","family":"repair-escalation","reflection":"Identify the partial setup and stop at the documented operator repair boundary. This is train case 2; use only the public Kibi MCP surface."}]
62
- ```