Skip to content

Commit db129c9

Browse files
nhortonclaude
andauthored
fix: Remove over-aggressive whitespace stripping in skill template (#175)
The Jinja template for generating SKILL.md files was using {%- tags that stripped necessary newlines in the YAML frontmatter. This caused fields like `user-invocable` and `hooks` to be concatenated onto single lines instead of being properly formatted. Changes: - Remove `-` from `{%- if not exposed %}` to preserve newline after description - Remove `-` from `{%- endif %}` to preserve newline after user-invocable - Remove `-` from comment start `{#-` to preserve newline before hooks section - Remove `-` from for loops in hooks section to preserve proper YAML structure https://claude.ai/code/session_01DmwZm5TgeeoR4sxp7GBtBE Co-authored-by: Claude <noreply@anthropic.com>
1 parent 98b823b commit db129c9

20 files changed

Lines changed: 77 additions & 32 deletions

File tree

.claude/skills/add_platform.add_capabilities/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: add_platform.add_capabilities
3-
description: "Updates job schema and adapters with any new hook events the platform supports. Use after research to extend DeepWork's hook system."user-invocable: false---
3+
description: "Updates job schema and adapters with any new hook events the platform supports. Use after research to extend DeepWork's hook system."
4+
user-invocable: false
5+
---
46

57
# add_platform.add_capabilities
68

.claude/skills/add_platform.implement/SKILL.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
---
22
name: add_platform.implement
3-
description: "Creates platform adapter, templates, tests with 100% coverage, and README documentation. Use after adding hook capabilities."user-invocable: falsehooks: Stop:
4-
- hooks: - type: command
5-
command: ".deepwork/jobs/add_platform/hooks/run_tests.sh" SubagentStop:
6-
- hooks: - type: command
7-
command: ".deepwork/jobs/add_platform/hooks/run_tests.sh"---
3+
description: "Creates platform adapter, templates, tests with 100% coverage, and README documentation. Use after adding hook capabilities."
4+
user-invocable: false
5+
hooks:
6+
Stop:
7+
- hooks:
8+
- type: command
9+
command: ".deepwork/jobs/add_platform/hooks/run_tests.sh"
10+
SubagentStop:
11+
- hooks:
12+
- type: command
13+
command: ".deepwork/jobs/add_platform/hooks/run_tests.sh"
14+
---
815

916
# add_platform.implement
1017

.claude/skills/add_platform.research/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: add_platform.research
3-
description: "Captures CLI configuration and hooks system documentation for the new platform. Use when starting platform integration."user-invocable: false---
3+
description: "Captures CLI configuration and hooks system documentation for the new platform. Use when starting platform integration."
4+
user-invocable: false
5+
---
46

57
# add_platform.research
68

.claude/skills/add_platform.verify/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: add_platform.verify
3-
description: "Sets up platform directories and verifies deepwork install works correctly. Use after implementation to confirm integration."user-invocable: false---
3+
description: "Sets up platform directories and verifies deepwork install works correctly. Use after implementation to confirm integration."
4+
user-invocable: false
5+
---
46

57
# add_platform.verify
68

.claude/skills/commit.commit_and_push/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: commit.commit_and_push
3-
description: "Verifies changed files, creates commit, and pushes to remote. Use after linting passes to finalize changes."user-invocable: false---
3+
description: "Verifies changed files, creates commit, and pushes to remote. Use after linting passes to finalize changes."
4+
user-invocable: false
5+
---
46

57
# commit.commit_and_push
68

.claude/skills/commit.lint/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: commit.lint
3-
description: "Formats and lints code with ruff using a sub-agent. Use after tests pass to ensure code style compliance."user-invocable: false---
3+
description: "Formats and lints code with ruff using a sub-agent. Use after tests pass to ensure code style compliance."
4+
user-invocable: false
5+
---
46

57
# commit.lint
68

.claude/skills/commit.review/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: commit.review
3-
description: "Reviews changed code for issues, DRY opportunities, naming clarity, and test coverage using a sub-agent. Use as the first step before testing."user-invocable: false---
3+
description: "Reviews changed code for issues, DRY opportunities, naming clarity, and test coverage using a sub-agent. Use as the first step before testing."
4+
user-invocable: false
5+
---
46

57
# commit.review
68

.claude/skills/commit.test/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: commit.test
3-
description: "Pulls latest code and runs tests until all pass. Use after code review passes to verify changes work correctly."user-invocable: false---
3+
description: "Pulls latest code and runs tests until all pass. Use after code review passes to verify changes work correctly."
4+
user-invocable: false
5+
---
46

57
# commit.test
68

.claude/skills/deepwork_jobs.define/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: deepwork_jobs.define
3-
description: "Creates a job.yml specification by gathering workflow requirements through structured questions. Use when starting a new multi-step workflow."user-invocable: false---
3+
description: "Creates a job.yml specification by gathering workflow requirements through structured questions. Use when starting a new multi-step workflow."
4+
user-invocable: false
5+
---
46

57
# deepwork_jobs.define
68

.claude/skills/deepwork_jobs.implement/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: deepwork_jobs.implement
3-
description: "Generates step instruction files and syncs slash commands from the job.yml specification. Use after job spec review passes."user-invocable: false---
3+
description: "Generates step instruction files and syncs slash commands from the job.yml specification. Use after job spec review passes."
4+
user-invocable: false
5+
---
46

57
# deepwork_jobs.implement
68

0 commit comments

Comments
 (0)