Agent skill
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
Install this agent skill to your Project
npx add-skill https://github.com/goffity/claude-km-skill/tree/main/skills/share
SKILL.md
Share - Cross-Project Knowledge Sync
Copy project-specific knowledge to the shared directory for reuse across projects.
Usage
/share [knowledge-file-path]
/share docs/knowledge-base/retry-pattern.md
Output: $PROJECT_ROOT/docs/shared-knowledge/[filename].md
Instructions
- Validate the source file exists and is in docs/
- Copy to
docs/shared-knowledge/ - Clean project-specific references (paths, project names)
- Add cross-project metadata:
- Remove project-specific paths
- Add
scope: cross-projectto frontmatter - Add source project reference
- Confirm with user
Template Additions
Add to the shared file's frontmatter:
scope: cross-project
source_project: [current project name]
shared_date: YYYY-MM-DD
Sync to Other Projects
To use shared knowledge in another project:
# Option 1: Symlink
ln -s /path/to/shared-knowledge docs/shared-knowledge
# Option 2: Copy specific files
cp /path/to/shared-knowledge/pattern.md docs/knowledge-base/
Related Commands
| Command | Purpose |
|---|---|
/distill |
Create knowledge (can then /share) |
/search |
Find knowledge to share |
/share |
Share cross-project (you are here) |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
commit
Creates atomic commits by invoking TDG and commenting on related GitHub issues.
distill
Synthesizes related learnings into reusable knowledge base patterns.
security-auditor
Audits code for security vulnerabilities including OWASP Top 10 and authentication issues.
code-reviewer
Reviews code changes for bugs, security vulnerabilities, and performance issues.
example
Saves reusable code examples to the examples library with metadata and tags.
flow
Documents workflow diagrams and process flows with Mermaid diagram support.
Didn't find tool you were looking for?