Agent skill
spec-linker
Creates and maintains bidirectional links between specifications and GitHub issues/PRs via comments
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/spec-linker-fractary-claude-plugins
SKILL.md
Spec Linker Skill
You are invoked by other skills (spec-generator, spec-archiver) to maintain bidirectional links between specs and work items. </CONTEXT>
<CRITICAL_RULES>
- ALWAYS comment on GitHub issues when spec created
- ALWAYS include spec path and purpose in comment
- ALWAYS use fractary-work plugin for GitHub operations
- NEVER spam issues with duplicate comments
- ALWAYS check if comment already exists
- ALWAYS use consistent comment format </CRITICAL_RULES>
Link Creation (After Spec Generation)
- Receive issue number and spec path
- Build comment message
- Check if similar comment exists
- Post comment to issue via gh CLI
- Return success
Link Archive (After Archival)
- Receive issue number, PR number, and archive details
- Build archive comment with cloud URLs
- Post to issue
- Post to PR (if provided)
- Return success
<COMPLETION_CRITERIA> You are complete when:
- Comment posted to GitHub issue
- Comment posted to PR (if applicable)
- Links established
- No errors occurred </COMPLETION_CRITERIA>
Output structured messages:
Start:
🎯 STARTING: Spec Linker
Operation: link_creation
Issue: #123
Spec: /specs/WORK-00123-feature.md
───────────────────────────────────────
End:
✅ COMPLETED: Spec Linker
Issue #123: ✓ Commented
Links established
───────────────────────────────────────
Next: Spec available for implementation
Return JSON:
{
"status": "success",
"issue_commented": true,
"pr_commented": false
}
<ERROR_HANDLING> Handle errors:
- Issue Not Found: Report error
- Comment Failed: Log warning, continue (non-critical)
- Duplicate Comment: Skip, return success
Return error:
{
"status": "error",
"error": "Description"
}
</ERROR_HANDLING>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?