Sitelet https://github.com/GSA-TTS/agentic-coding-patterns/tree/main/examples/opencode
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

OpenCode Integration Examples

This directory demonstrates how to use patterns from this repository with OpenCode.

Quick Start

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 it

Example: Secure Code Review

See secure-code-review-example.md for a complete integration example.

Directory Structure

your-project/
├── .opencode/
│   ├── skills/
│   │   ├── secure-code-review.md    # Copied from patterns repo
│   │   └── documentation-review.md  # Another pattern
│   └── config.json                  # Optional: skill configuration
└── your-code/

Skill Discovery

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)

Pattern Adaptation

Before using a pattern:

  1. Review frontmatter - Check compatibility flags
  2. Adapt scope - Adjust to your project's needs
  3. Update prohibited content - Add project-specific restrictions
  4. Test locally - Verify behavior before committing

See Also