Skip to content

Commit d434637

Browse files
TC-MOclaude
andauthored
fix: use project-root-relative paths in skill files (#2394)
Skills run from the project root, not their own directory. Bare references/ and scripts/ paths wouldn't resolve. Use .agents/skills/ prefixed paths so scripts and reference docs are found correctly. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4b8803b commit d434637

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.agents/skills/api-doc/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ argument-hint: endpoint-name
2323

2424
**CRITICAL**: API docs are generated, not hand-written. Never edit files in `apify-api/docs/` directly.
2525

26-
For detailed patterns and examples, see `references/openapi-patterns.md`.
27-
For edge cases and process notes, see `references/process.md`.
26+
For detailed patterns and examples, see `.agents/skills/api-doc/references/openapi-patterns.md`.
27+
For edge cases and process notes, see `.agents/skills/api-doc/references/process.md`.

.agents/skills/api-doc/references/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apify-api/openapi/
2626

2727
## Step 3: Create or update files
2828

29-
See `references/openapi-patterns.md` for detailed patterns and examples.
29+
See `.agents/skills/api-doc/references/openapi-patterns.md` for detailed patterns and examples.
3030

3131
Key conventions:
3232

.agents/skills/doc-write/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ argument-hint: topic
2020

2121
Key rules: US English, active voice, imperative tone, sentence case headings, bold for UI elements only, all admonitions need titles, code blocks need language tags.
2222

23-
For detailed structure templates, see `references/doc-structures.md`.
24-
For edge cases and process notes, see `references/process.md`.
23+
For detailed structure templates, see `.agents/skills/doc-write/references/doc-structures.md`.
24+
For edge cases and process notes, see `.agents/skills/doc-write/references/process.md`.

.agents/skills/doc-write/references/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ slug: /path/to/page
3030

3131
## Step 4: Write content
3232

33-
Follow the structure template for the doc type in `references/doc-structures.md`:
33+
Follow the structure template for the doc type in `.agents/skills/doc-write/references/doc-structures.md`:
3434

3535
- **Platform docs**: introduction → when to use → configure/use → best practices → related features
3636
- **Guides**: introduction → prerequisites → step-by-step → code examples → testing → summary

.agents/skills/review-docs/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ argument-hint: file-path
1414
2. **Run deterministic checks** (main process) - these are objective, no judgment needed:
1515
- `npm run lint:md` (heading hierarchy, list numbering, spacing)
1616
- `vale "<file>" --minAlertLevel=error` (prose style, pronouns, dashes, code fences, admonitions)
17-
- `scripts/check-frontmatter.sh "<file>"` (description char count)
17+
- `.agents/skills/review-docs/scripts/check-frontmatter.sh "<file>"` (description char count)
1818
3. **Delegated standards review** - spawn one subagent per standards file to check compliance. Each subagent reads the file being reviewed plus one standards file, and returns violations with line numbers and suggested fixes:
1919
- Subagent 1: check against `standards/writing-style.md` (voice, tone, headings, links)
2020
- Subagent 2: check against `standards/content-standards.md` (front matter, admonitions, code blocks)
@@ -26,8 +26,8 @@ argument-hint: file-path
2626
- Technical accuracy (code examples correct, API endpoints current)
2727
- Completeness (prerequisites listed, edge cases covered)
2828
- Code example quality (complete, runnable, commented where needed)
29-
5. **Format output** - merge subagent findings + deterministic results + content review per `references/review-format.md`
29+
5. **Format output** - merge subagent findings + deterministic results + content review per `.agents/skills/review-docs/references/review-format.md`
3030

3131
Deterministic tools first, then delegated standards checks, then content review. Report tool failures as objective facts. Report standards and content findings as judgment calls.
3232

33-
For detailed process notes and edge cases, see `references/process.md`.
33+
For detailed process notes and edge cases, see `.agents/skills/review-docs/references/process.md`.

.agents/skills/review-docs/references/process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ These are objective - no judgment needed. Report all failures. Run in the main p
1313

1414
- `npm run lint:md` (markdownlint: heading hierarchy, double spaces, list numbering)
1515
- `vale "<file>" --minAlertLevel=error` (prose style, dashes, code fences, admonitions)
16-
- `scripts/check-frontmatter.sh "<file>"` (description char count)
16+
- `.agents/skills/review-docs/scripts/check-frontmatter.sh "<file>"` (description char count)
1717

1818
## Step 3: Delegated standards review
1919

@@ -41,7 +41,7 @@ Run in the main process. Focus on what neither deterministic tools nor standards
4141

4242
## Step 5: Format output
4343

44-
Merge deterministic results + subagent findings + content review into structured output per `references/review-format.md`.
44+
Merge deterministic results + subagent findings + content review into structured output per `.agents/skills/review-docs/references/review-format.md`.
4545

4646
- Tool findings are objective facts
4747
- Standards findings are rule-based judgment calls

.agents/skills/tutorial/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ argument-hint: topic
2525

2626
Each step should have a clear action verb, expected result, and verification. Code examples must be complete - no pseudocode.
2727

28-
For the detailed 8-section template, see `references/tutorial-template.md`.
29-
For edge cases and process notes, see `references/process.md`.
28+
For the detailed 8-section template, see `.agents/skills/tutorial/references/tutorial-template.md`.
29+
For edge cases and process notes, see `.agents/skills/tutorial/references/process.md`.

.agents/skills/tutorial/references/process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Use simple present tense ("Create an Actor" not "Creating an Actor"). Match slug
2929

3030
## Step 4: Write tutorial content
3131

32-
Follow the 8-section template in `references/tutorial-template.md`:
32+
Follow the 8-section template in `.agents/skills/tutorial/references/tutorial-template.md`:
3333

3434
1. Introduction with learning objectives
3535
1. Prerequisites with checklist and time estimate
@@ -56,7 +56,7 @@ Verify front matter has all required fields. Run `npm run build` to catch broken
5656

5757
### Code examples don't render correctly
5858

59-
Ensure every code block has a language specifier. For code tabs, use the exact Docusaurus `Tabs`/`TabItem` import pattern from `references/tutorial-template.md`.
59+
Ensure every code block has a language specifier. For code tabs, use the exact Docusaurus `Tabs`/`TabItem` import pattern from `.agents/skills/tutorial/references/tutorial-template.md`.
6060

6161
### Tutorial doesn't appear in sidebar
6262

0 commit comments

Comments
 (0)