Skip to content

Commit 7ca519c

Browse files
wrsmith108ruvnet
andcommitted
fix: replace hardcoded ~/.claude/skills/linear paths with relative paths
SKILL.md, troubleshooting.md, projects.md, README.md, setup.ts, and post-edit.sh all contained hardcoded absolute paths assuming installation at ~/.claude/skills/linear/. This broke project-local installations at .claude/skills/linear/. Replaced 16 script invocation paths with relative equivalents. Preserved intentional absolute paths in installation instructions, hook configs, and changelog entries. Closes #8 Linear: SMI-2424 Co-Authored-By: claude-flow <[email protected]>
1 parent daedb56 commit 7ca519c

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ cd ~/.claude/skills/linear && npm install
2929
### 2. Run Setup Check
3030

3131
```bash
32-
npx tsx ~/.claude/skills/linear/scripts/setup.ts
32+
npx tsx scripts/setup.ts
3333
```
3434

3535
This checks your configuration and tells you exactly what's missing.
@@ -50,7 +50,7 @@ source ~/.zshrc
5050
### 4. Verify It Works
5151

5252
```bash
53-
npx tsx ~/.claude/skills/linear/scripts/linear-ops.ts whoami
53+
npx tsx scripts/linear-ops.ts whoami
5454
```
5555

5656
You should see your name and organization.

SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ cat .env
103103
Run the setup check to verify your configuration:
104104

105105
```bash
106-
npx tsx ~/.claude/skills/linear/scripts/setup.ts
106+
npx tsx scripts/setup.ts
107107
```
108108

109109
This will check:
@@ -136,7 +136,7 @@ echo 'LINEAR_API_KEY=lin_api_your_key_here' >> ~/.claude/.env
136136
Verify everything works:
137137

138138
```bash
139-
npx tsx ~/.claude/skills/linear/scripts/query.ts "query { viewer { name } }"
139+
npx tsx scripts/query.ts "query { viewer { name } }"
140140
```
141141

142142
You should see your name from Linear.
@@ -451,7 +451,7 @@ See **[api.md](api.md)** for complete documentation including:
451451
**Quick ad-hoc query:**
452452

453453
```bash
454-
npx tsx ~/.claude/skills/linear/scripts/query.ts "query { viewer { name } }"
454+
npx tsx scripts/query.ts "query { viewer { name } }"
455455
```
456456

457457
## Projects & Initiatives

hooks/post-edit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ all_issues=$(echo "$issue_refs $recent_issues" | tr ' ' '\n' | sort -u | grep -v
7878
# Output context for Claude (this gets added to the conversation)
7979
if [ -n "$all_issues" ]; then
8080
echo "[linear-sync] Changed: $filename | Issues: $all_issues"
81-
echo "[linear-sync] Consider running: npx ts-node ~/.claude/skills/linear/scripts/sync.ts --issues ${all_issues// /,} --state Done"
81+
echo "[linear-sync] Consider running: npx ts-node scripts/sync.ts --issues ${all_issues// /,} --state Done"
8282
fi
8383

8484
exit 0

projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ mutation {
256256
**Example using query.ts:**
257257

258258
```bash
259-
npx tsx ~/.claude/skills/linear/scripts/query.ts 'mutation {
259+
npx tsx scripts/query.ts 'mutation {
260260
initiativeToProjectCreate(input: {
261261
initiativeId: "<initiative-uuid>",
262262
projectId: "<project-uuid>"

scripts/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function checkSdkInstalled(): Promise<{ installed: boolean; issues: string
103103
issues: ['@linear/sdk not installed'],
104104
suggestions: [
105105
'Install the Linear SDK:',
106-
' cd ~/.claude/skills/linear && npm install @linear/sdk'
106+
' npm install @linear/sdk # Run from the skill directory'
107107
]
108108
};
109109
}

troubleshooting.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,30 @@ A complete API wrapper with proper JSON escaping and error handling:
5858

5959
```bash
6060
# Create issue (replace <TEAM> with your team key, e.g., ENG, PROJ)
61-
node ~/.claude/skills/linear/scripts/linear-api.mjs create-issue \
61+
node scripts/linear-api.mjs create-issue \
6262
--team <TEAM> --title "New feature" --description "Details here" --priority 2
6363

6464
# Update status (replace <TEAM>-123 with your issue identifier)
65-
node ~/.claude/skills/linear/scripts/linear-api.mjs update-status \
65+
node scripts/linear-api.mjs update-status \
6666
--issue <TEAM>-123 --status done
6767

6868
# Add comment
69-
node ~/.claude/skills/linear/scripts/linear-api.mjs add-comment \
69+
node scripts/linear-api.mjs add-comment \
7070
--issue <TEAM>-123 --body "Fixed in PR #25"
7171

7272
# Add project update
73-
node ~/.claude/skills/linear/scripts/linear-api.mjs add-project-update \
73+
node scripts/linear-api.mjs add-project-update \
7474
--project <PROJECT_UUID> --body "## Status Update\n\nProgress details..." --health onTrack
7575

7676
# List issues
77-
node ~/.claude/skills/linear/scripts/linear-api.mjs list-issues \
77+
node scripts/linear-api.mjs list-issues \
7878
--team <TEAM> --status "In Progress" --limit 20
7979

8080
# List labels
81-
node ~/.claude/skills/linear/scripts/linear-api.mjs list-labels --team <TEAM>
81+
node scripts/linear-api.mjs list-labels --team <TEAM>
8282

8383
# Help
84-
node ~/.claude/skills/linear/scripts/linear-api.mjs help
84+
node scripts/linear-api.mjs help
8585
```
8686

8787
**Benefits over MCP:**
@@ -159,7 +159,7 @@ export LINEAR_API_KEY="lin_api_your_key_here"
159159
### Test Connection
160160

161161
```bash
162-
npx tsx ~/.claude/skills/linear/scripts/query.ts "query { viewer { name } }"
162+
npx tsx scripts/query.ts "query { viewer { name } }"
163163
```
164164

165165
### Check MCP Configuration

0 commit comments

Comments
 (0)