@plaited/development-skills 0.5.0 → 0.6.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 (31) hide show
  1. package/{.claude → .plaited}/rules/accuracy.md +3 -10
  2. package/{.claude → .plaited}/rules/code-review.md +2 -9
  3. package/.plaited/rules/git-workflow.md +36 -0
  4. package/{.claude → .plaited}/rules/module-organization.md +1 -1
  5. package/{.claude → .plaited}/rules/testing.md +1 -1
  6. package/package.json +2 -2
  7. package/src/lsp-analyze.ts +1 -1
  8. package/src/lsp-find.ts +1 -1
  9. package/src/lsp-hover.ts +1 -1
  10. package/src/lsp-references.ts +1 -1
  11. package/src/lsp-symbols.ts +1 -1
  12. package/src/scaffold-rules.ts +148 -204
  13. package/src/tests/scaffold-rules.spec.ts +148 -118
  14. package/.claude/commands/lsp-analyze.md +0 -66
  15. package/.claude/commands/lsp-find.md +0 -74
  16. package/.claude/commands/lsp-hover.md +0 -57
  17. package/.claude/commands/lsp-refs.md +0 -64
  18. package/.claude/commands/scaffold-rules.md +0 -221
  19. package/.claude/commands/validate-skill.md +0 -29
  20. package/.claude/rules/git-workflow.md +0 -66
  21. package/.claude/skills/code-documentation/SKILL.md +0 -47
  22. package/.claude/skills/code-documentation/references/internal-templates.md +0 -113
  23. package/.claude/skills/code-documentation/references/maintenance.md +0 -164
  24. package/.claude/skills/code-documentation/references/public-api-templates.md +0 -100
  25. package/.claude/skills/code-documentation/references/type-documentation.md +0 -116
  26. package/.claude/skills/code-documentation/references/workflow.md +0 -60
  27. package/.claude/skills/scaffold-rules/SKILL.md +0 -104
  28. package/.claude/skills/typescript-lsp/SKILL.md +0 -249
  29. package/.claude/skills/validate-skill/SKILL.md +0 -105
  30. /package/{.claude → .plaited}/rules/bun-apis.md +0 -0
  31. /package/{.claude → .plaited}/rules/github.md +0 -0
@@ -1,6 +1,6 @@
1
1
  <!--
2
- RULE TEMPLATE - Distributed via /scaffold-rules
3
- Variables: {{LINK:testing}}, {{#if development-skills}}, {{#if supports-slash-commands}}
2
+ RULE TEMPLATE - Distributed via scaffold-rules skill
3
+ Variables: {{LINK:testing}}, {{#if development-skills}}
4
4
  -->
5
5
 
6
6
  # Accuracy and Confidence Standards
@@ -19,7 +19,7 @@ Variables: {{LINK:testing}}, {{#if development-skills}}, {{#if supports-slash-co
19
19
  {{#if development-skills}}
20
20
  - **For TypeScript/JavaScript projects**: When @plaited/development-skills is installed, prefer LSP tools for type-aware verification:
21
21
  - Use `lsp-find` to search for symbols, types, and patterns across the workspace
22
- - Use `lsp-references` to find all usages of a symbol
22
+ - Use `lsp-refs` to find all usages of a symbol
23
23
  - Use `lsp-hover` to verify type signatures
24
24
  - Use `lsp-analyze` for batch analysis of file structure
25
25
  {{/if}}
@@ -30,14 +30,7 @@ Variables: {{LINK:testing}}, {{#if development-skills}}, {{#if supports-slash-co
30
30
  4. **Tool-Assisted Verification**: Use available tools to enhance verification accuracy:
31
31
  {{#if development-skills}}
32
32
  - **TypeScript LSP tools** (when available): Use for type-aware analysis of `.ts`, `.tsx`, `.js`, `.jsx` files
33
- {{/if}}
34
- {{#if supports-slash-commands}}
35
- - Available via `/lsp-hover`, `/lsp-find`, `/lsp-refs`, `/lsp-analyze` commands
36
- {{/if}}
37
- {{^if supports-slash-commands}}
38
- {{#if development-skills}}
39
33
  - Available via `bunx @plaited/development-skills lsp-*` commands
40
- {{/if}}
41
34
  {{/if}}
42
35
  - **WebFetch**: Retrieve current documentation from authoritative sources (MDN Web Docs, WHATWG specs) when using web platform APIs
43
36
  - These tools complement (but do not replace) reading live code - always verify outputs against actual implementation
@@ -1,6 +1,6 @@
1
1
  <!--
2
- RULE TEMPLATE - Distributed via /scaffold-rules
3
- Variables: {{#if development-skills}}, {{#if supports-slash-commands}}
2
+ RULE TEMPLATE - Distributed via scaffold-rules skill
3
+ Variables: {{#if development-skills}}
4
4
  -->
5
5
 
6
6
  # Code Review Standards
@@ -17,16 +17,9 @@ When working with AgentSkills directories (`.claude/skills/`, `.cursor/skills/`,
17
17
 
18
18
  {{#if development-skills}}
19
19
  **Validate structure:**
20
- {{#if supports-slash-commands}}
21
- ```
22
- /validate-skill <path>
23
- ```
24
- {{/if}}
25
- {{^if supports-slash-commands}}
26
20
  ```bash
27
21
  bunx @plaited/development-skills validate-skill <path>
28
22
  ```
29
- {{/if}}
30
23
 
31
24
  This checks:
32
25
  - SKILL.md exists with required frontmatter (name, description)
@@ -0,0 +1,36 @@
1
+ <!--
2
+ RULE TEMPLATE - Distributed via scaffold-rules skill
3
+ Variables: {{LINK:*}}
4
+ -->
5
+
6
+ # Git Workflow
7
+
8
+ ## Commit Message Format
9
+
10
+ Use multi-line commit messages for detailed changes:
11
+
12
+ ```bash
13
+ git commit -m "refactor: description here
14
+
15
+ Additional context on second line."
16
+ ```
17
+
18
+ ## Pre-commit Hooks
19
+
20
+ **Never use `--no-verify`** to bypass pre-commit hooks. If hooks fail, it indicates a real issue that must be fixed:
21
+
22
+ 1. Investigate the error message
23
+ 2. Fix the underlying issue (lint errors, format issues, test failures)
24
+ 3. Re-run the commit
25
+
26
+ Using `--no-verify` masks problems and defeats the purpose of automated quality checks.
27
+
28
+ ## Commit Conventions
29
+
30
+ Follow conventional commits format:
31
+ - `feat:` - New features
32
+ - `fix:` - Bug fixes
33
+ - `refactor:` - Code changes that neither fix bugs nor add features
34
+ - `docs:` - Documentation only changes
35
+ - `chore:` - Maintenance tasks
36
+ - `test:` - Adding or updating tests
@@ -1,5 +1,5 @@
1
1
  <!--
2
- RULE TEMPLATE - Distributed via /scaffold-rules
2
+ RULE TEMPLATE - Distributed via scaffold-rules skill
3
3
  Variables: {{#if bun}}
4
4
  -->
5
5
 
@@ -1,5 +1,5 @@
1
1
  <!--
2
- RULE TEMPLATE - Distributed via /scaffold-rules
2
+ RULE TEMPLATE - Distributed via scaffold-rules skill
3
3
  Variables: {{#if agent:claude}}
4
4
  -->
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaited/development-skills",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Development skills for Claude Code - TypeScript LSP, code documentation, and validation tools",
5
5
  "license": "ISC",
6
6
  "engines": {
@@ -21,7 +21,7 @@
21
21
  "files": [
22
22
  "bin/",
23
23
  "src/",
24
- ".claude/"
24
+ ".plaited/"
25
25
  ],
26
26
  "publishConfig": {
27
27
  "access": "public"
@@ -211,7 +211,7 @@ Examples:
211
211
 
212
212
  console.log(JSON.stringify(result, null, 2))
213
213
  } catch (error) {
214
- console.error(`Error: ${error}`)
214
+ console.error('Error:', error)
215
215
  await client.stop()
216
216
  process.exit(1)
217
217
  }
package/src/lsp-find.ts CHANGED
@@ -69,7 +69,7 @@ export const lspFind = async (args: string[]) => {
69
69
 
70
70
  console.log(JSON.stringify(result, null, 2))
71
71
  } catch (error) {
72
- console.error(`Error: ${error}`)
72
+ console.error('Error:', error)
73
73
  await client.stop()
74
74
  process.exit(1)
75
75
  }
package/src/lsp-hover.ts CHANGED
@@ -75,7 +75,7 @@ export const lspHover = async (args: string[]) => {
75
75
  console.log('null')
76
76
  }
77
77
  } catch (error) {
78
- console.error(`Error: ${error}`)
78
+ console.error('Error:', error)
79
79
  await client.stop()
80
80
  process.exit(1)
81
81
  }
@@ -71,7 +71,7 @@ export const lspRefs = async (args: string[]) => {
71
71
 
72
72
  console.log(JSON.stringify(result, null, 2))
73
73
  } catch (error) {
74
- console.error(`Error: ${error}`)
74
+ console.error('Error:', error)
75
75
  await client.stop()
76
76
  process.exit(1)
77
77
  }
@@ -61,7 +61,7 @@ export const lspSymbols = async (args: string[]) => {
61
61
 
62
62
  console.log(JSON.stringify(result, null, 2))
63
63
  } catch (error) {
64
- console.error(`Error: ${error}`)
64
+ console.error('Error:', error)
65
65
  await client.stop()
66
66
  process.exit(1)
67
67
  }