k-harness 0.8.2 → 0.8.3

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/init.js +5 -17
package/README.md CHANGED
@@ -57,7 +57,7 @@ npx k-harness init --ide antigravity
57
57
  |-----|----------------------|--------|--------|
58
58
  | **VS Code Copilot** | `.github/copilot-instructions.md` | `.github/skills/*/SKILL.md` | `.github/agents/*.agent.md` |
59
59
  | **Claude Code** | `.claude/rules/core.md` | `.claude/skills/*/SKILL.md` | `.claude/skills/*/SKILL.md` |
60
- | **Cursor** | `.cursor/rules/core.mdc` | `.cursor/rules/*.mdc` | `.cursor/rules/*.mdc` |
60
+ | **Cursor** | `.cursor/rules/core.mdc` | `.cursor/skills/*/SKILL.md` | `.cursor/skills/*/SKILL.md` |
61
61
  | **Codex** | `AGENTS.md` | `.agents/skills/*/SKILL.md` | (merged into AGENTS.md) |
62
62
  | **Windsurf** | `.windsurfrules` | (merged) | (merged) |
63
63
  | **Augment Code** | `.augment/rules/core.md` | `.augment/skills/*/SKILL.md` | `.augment/skills/*/SKILL.md` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k-harness",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "LLM Development Harness — IDE-agnostic rules, skills, and agents that prevent common AI coding failures",
5
5
  "keywords": [
6
6
  "llm",
package/src/init.js CHANGED
@@ -148,30 +148,18 @@ function generateClaude(targetDir, overwrite) {
148
148
  }
149
149
 
150
150
  function generateCursor(targetDir, overwrite) {
151
- // .cursor/rules/core.mdc — dispatcher only
151
+ // .cursor/rules/core.mdc — dispatcher only (always active)
152
152
  const coreRules = readTemplate('core-rules.md');
153
153
  const coreMdc =
154
154
  '---\ndescription: K-Harness dispatcher — workflow guidance and state file references\nalwaysApply: true\n---\n\n' +
155
155
  coreRules;
156
156
  writeFile(targetDir, '.cursor/rules/core.mdc', coreMdc, overwrite);
157
157
 
158
- // Skills as rules
159
- for (const skill of SKILLS) {
160
- const content = readTemplate(`skills/${skill.id}.md`);
161
- const mdc =
162
- `---\ndescription: ${skill.desc}\nalwaysApply: false\n---\n\n` +
163
- content;
164
- writeFile(targetDir, `.cursor/rules/${skill.id}.mdc`, mdc, overwrite);
165
- }
158
+ // Skills (.cursor/skills — invokable by mentioning skill name)
159
+ writeSkills(targetDir, '.cursor/skills', overwrite);
166
160
 
167
- // Agents as rules
168
- for (const agent of AGENTS) {
169
- const content = readTemplate(agent.file);
170
- const mdc =
171
- `---\ndescription: ${agent.desc}\nalwaysApply: false\n---\n\n` +
172
- content;
173
- writeFile(targetDir, `.cursor/rules/${agent.id}.mdc`, mdc, overwrite);
174
- }
161
+ // Agents as skills
162
+ writeAgentsAsSkills(targetDir, '.cursor/skills', overwrite);
175
163
 
176
164
  // State files
177
165
  writeStateFiles(targetDir, overwrite);