kungeskill 0.4.0 → 0.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 (160) hide show
  1. package/.claude-plugin/marketplace.json +9 -0
  2. package/README.md +12 -0
  3. package/package.json +3 -1
  4. package/plugins/anthropics/plugin.json +7 -0
  5. package/plugins/anthropics/skills/docx/LICENSE.txt +30 -0
  6. package/plugins/anthropics/skills/docx/SKILL.md +590 -0
  7. package/plugins/anthropics/skills/docx/scripts/__init__.py +1 -0
  8. package/plugins/anthropics/skills/docx/scripts/accept_changes.py +135 -0
  9. package/plugins/anthropics/skills/docx/scripts/comment.py +318 -0
  10. package/plugins/anthropics/skills/docx/scripts/office/helpers/__init__.py +0 -0
  11. package/plugins/anthropics/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
  12. package/plugins/anthropics/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
  13. package/plugins/anthropics/skills/docx/scripts/office/pack.py +159 -0
  14. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  15. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  16. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  17. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  18. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  19. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  20. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  21. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  22. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  23. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  24. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  25. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  26. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  27. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  28. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  29. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  30. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  31. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  32. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  33. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  34. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  35. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  36. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  37. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  38. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  39. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  40. package/plugins/anthropics/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  41. package/plugins/anthropics/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  42. package/plugins/anthropics/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  43. package/plugins/anthropics/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  44. package/plugins/anthropics/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  45. package/plugins/anthropics/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
  46. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  47. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  48. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  49. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  50. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  51. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  52. package/plugins/anthropics/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  53. package/plugins/anthropics/skills/docx/scripts/office/soffice.py +183 -0
  54. package/plugins/anthropics/skills/docx/scripts/office/unpack.py +132 -0
  55. package/plugins/anthropics/skills/docx/scripts/office/validate.py +111 -0
  56. package/plugins/anthropics/skills/docx/scripts/office/validators/__init__.py +15 -0
  57. package/plugins/anthropics/skills/docx/scripts/office/validators/base.py +847 -0
  58. package/plugins/anthropics/skills/docx/scripts/office/validators/docx.py +446 -0
  59. package/plugins/anthropics/skills/docx/scripts/office/validators/pptx.py +275 -0
  60. package/plugins/anthropics/skills/docx/scripts/office/validators/redlining.py +247 -0
  61. package/plugins/anthropics/skills/docx/scripts/templates/comments.xml +3 -0
  62. package/plugins/anthropics/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  63. package/plugins/anthropics/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  64. package/plugins/anthropics/skills/docx/scripts/templates/commentsIds.xml +3 -0
  65. package/plugins/anthropics/skills/docx/scripts/templates/people.xml +3 -0
  66. package/plugins/anthropics/skills/mcp-builder/LICENSE.txt +202 -0
  67. package/plugins/anthropics/skills/mcp-builder/SKILL.md +236 -0
  68. package/plugins/anthropics/skills/mcp-builder/reference/evaluation.md +602 -0
  69. package/plugins/anthropics/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  70. package/plugins/anthropics/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  71. package/plugins/anthropics/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  72. package/plugins/anthropics/skills/mcp-builder/scripts/connections.py +151 -0
  73. package/plugins/anthropics/skills/mcp-builder/scripts/evaluation.py +373 -0
  74. package/plugins/anthropics/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  75. package/plugins/anthropics/skills/mcp-builder/scripts/requirements.txt +2 -0
  76. package/plugins/anthropics/skills/pdf/LICENSE.txt +30 -0
  77. package/plugins/anthropics/skills/pdf/SKILL.md +314 -0
  78. package/plugins/anthropics/skills/pdf/forms.md +294 -0
  79. package/plugins/anthropics/skills/pdf/reference.md +612 -0
  80. package/plugins/anthropics/skills/pdf/scripts/check_bounding_boxes.py +65 -0
  81. package/plugins/anthropics/skills/pdf/scripts/check_fillable_fields.py +11 -0
  82. package/plugins/anthropics/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
  83. package/plugins/anthropics/skills/pdf/scripts/create_validation_image.py +37 -0
  84. package/plugins/anthropics/skills/pdf/scripts/extract_form_field_info.py +122 -0
  85. package/plugins/anthropics/skills/pdf/scripts/extract_form_structure.py +115 -0
  86. package/plugins/anthropics/skills/pdf/scripts/fill_fillable_fields.py +98 -0
  87. package/plugins/anthropics/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  88. package/plugins/anthropics/skills/skill-creator/LICENSE.txt +202 -0
  89. package/plugins/anthropics/skills/skill-creator/SKILL.md +485 -0
  90. package/plugins/anthropics/skills/skill-creator/agents/analyzer.md +274 -0
  91. package/plugins/anthropics/skills/skill-creator/agents/comparator.md +202 -0
  92. package/plugins/anthropics/skills/skill-creator/agents/grader.md +223 -0
  93. package/plugins/anthropics/skills/skill-creator/assets/eval_review.html +146 -0
  94. package/plugins/anthropics/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  95. package/plugins/anthropics/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  96. package/plugins/anthropics/skills/skill-creator/references/schemas.md +430 -0
  97. package/plugins/anthropics/skills/skill-creator/scripts/__init__.py +0 -0
  98. package/plugins/anthropics/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  99. package/plugins/anthropics/skills/skill-creator/scripts/generate_report.py +326 -0
  100. package/plugins/anthropics/skills/skill-creator/scripts/improve_description.py +247 -0
  101. package/plugins/anthropics/skills/skill-creator/scripts/package_skill.py +136 -0
  102. package/plugins/anthropics/skills/skill-creator/scripts/quick_validate.py +103 -0
  103. package/plugins/anthropics/skills/skill-creator/scripts/run_eval.py +310 -0
  104. package/plugins/anthropics/skills/skill-creator/scripts/run_loop.py +328 -0
  105. package/plugins/anthropics/skills/skill-creator/scripts/utils.py +47 -0
  106. package/plugins/anthropics/skills/xlsx/LICENSE.txt +30 -0
  107. package/plugins/anthropics/skills/xlsx/SKILL.md +292 -0
  108. package/plugins/anthropics/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
  109. package/plugins/anthropics/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  110. package/plugins/anthropics/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  111. package/plugins/anthropics/skills/xlsx/scripts/office/pack.py +159 -0
  112. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  113. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  114. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  115. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  116. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  117. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  118. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  119. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  120. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  121. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  122. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  123. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  124. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  125. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  126. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  127. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  128. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  129. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  130. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  131. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  132. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  133. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  134. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  135. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  136. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  137. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  138. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  139. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  140. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  141. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  142. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  143. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
  144. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  145. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  146. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  147. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  148. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  149. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  150. package/plugins/anthropics/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  151. package/plugins/anthropics/skills/xlsx/scripts/office/soffice.py +183 -0
  152. package/plugins/anthropics/skills/xlsx/scripts/office/unpack.py +132 -0
  153. package/plugins/anthropics/skills/xlsx/scripts/office/validate.py +111 -0
  154. package/plugins/anthropics/skills/xlsx/scripts/office/validators/__init__.py +15 -0
  155. package/plugins/anthropics/skills/xlsx/scripts/office/validators/base.py +847 -0
  156. package/plugins/anthropics/skills/xlsx/scripts/office/validators/docx.py +446 -0
  157. package/plugins/anthropics/skills/xlsx/scripts/office/validators/pptx.py +275 -0
  158. package/plugins/anthropics/skills/xlsx/scripts/office/validators/redlining.py +247 -0
  159. package/plugins/anthropics/skills/xlsx/scripts/recalc.py +184 -0
  160. package/src/commands/shared.js +20 -9
@@ -5,7 +5,8 @@ const path = require('path');
5
5
 
6
6
  /**
7
7
  * Find the project's .claude/skills/ directory.
8
- * Walks up from cwd until it finds one, or creates it at cwd.
8
+ * Walks up from cwd until it finds a .git boundary or existing .claude/skills/.
9
+ * Will not cross project boundaries (stops at .git root).
9
10
  *
10
11
  * @param {string} [cwd] - Starting directory (defaults to process.cwd())
11
12
  * @returns {string} Absolute path to .claude/skills/
@@ -15,17 +16,27 @@ function findProjectSkillsDir(cwd) {
15
16
  let dir = path.resolve(cwd);
16
17
  const root = path.parse(dir).root;
17
18
 
18
- while (dir !== root) {
19
- const skillsDir = path.join(dir, '.claude', 'skills');
20
- if (fs.existsSync(skillsDir)) {
21
- return skillsDir;
19
+ // First pass: find the project root (directory with .git)
20
+ let projectRoot = null;
21
+ let searchDir = dir;
22
+ while (searchDir !== root) {
23
+ if (fs.existsSync(path.join(searchDir, '.git'))) {
24
+ projectRoot = searchDir;
25
+ break;
22
26
  }
23
- dir = path.dirname(dir);
27
+ searchDir = path.dirname(searchDir);
24
28
  }
25
29
 
26
- // Not found create at current working directory
27
- const skillsDir = path.join(cwd, '.claude', 'skills');
28
- fs.mkdirSync(skillsDir, { recursive: true });
30
+ // If no .git found, use cwd as project root
31
+ if (!projectRoot) {
32
+ projectRoot = cwd;
33
+ }
34
+
35
+ // Use .claude/skills/ at the project root
36
+ const skillsDir = path.join(projectRoot, '.claude', 'skills');
37
+ if (!fs.existsSync(skillsDir)) {
38
+ fs.mkdirSync(skillsDir, { recursive: true });
39
+ }
29
40
  return skillsDir;
30
41
  }
31
42