This directory demonstrates how to use patterns from this repository with OpenCode.
OpenCode natively supports SKILL.md files. Simply copy patterns to your project's skills directory:
# Copy a pattern to your project
cp ../../skills/secure-code-review/SKILL.md .opencode/skills/
# OpenCode will automatically discover itSee secure-code-review-example.md for a complete integration example.
your-project/
├── .opencode/
│ ├── skills/
│ │ ├── secure-code-review.md # Copied from patterns repo
│ │ └── documentation-review.md # Another pattern
│ └── config.json # Optional: skill configuration
└── your-code/
OpenCode automatically discovers skills in .opencode/skills/. You can also reference them in AGENTS.md:
## Available Skills
- [Secure Code Review](../../skills/secure-code-review/SKILL.md)
- [Documentation Review](../../skills/documentation-review/SKILL.md)Before using a pattern:
- Review frontmatter - Check compatibility flags
- Adapt scope - Adjust to your project's needs
- Update prohibited content - Add project-specific restrictions
- Test locally - Verify behavior before committing