Knowns can sync instruction files and built-in skills for several AI platforms.
| Platform | Instruction File | Skills | Notes |
|---|---|---|---|
| Claude Code | CLAUDE.md |
.claude/skills/ |
Supports .mcp.json setup via knowns mcp setup |
| OpenCode | OPENCODE.md |
- | Instruction file generated by knowns sync |
| Gemini CLI | GEMINI.md |
- | Instruction file generated by knowns sync |
| GitHub Copilot | .github/copilot-instructions.md |
- | Instruction file generated by knowns sync |
| Generic agents | AGENTS.md |
- | Broad compatibility target |
Built-in skill syncing is currently implemented for Claude-style skill folders. Top-level instruction file syncing is handled by knowns sync.
Use the actual CLI commands:
# Sync skills and instruction files
knowns sync
# Sync skills only
knowns sync --skills
# Sync instruction files only
knowns sync --instructions
# Sync a single instruction target
knowns sync --instructions --platform claude
# Overwrite existing generated files
knowns sync --forceFor backwards compatibility, knowns agents --sync still exists for instruction files only.
knowns init can create instruction files during project setup. The exact files depend on your selected platforms and current project config.
Common generated files include:
KNOWNS.mdCLAUDE.mdOPENCODE.mdGEMINI.mdAGENTS.md.github/copilot-instructions.md
If MCP is selected during setup, Knowns can also create .mcp.json for Claude Code discovery.
Project config can restrict which platforms are active:
{
"settings": {
"platforms": ["claude-code", "opencode", "gemini", "copilot", "agents"]
}
}If settings.platforms is empty or omitted, Knowns treats all supported platforms as enabled.
Generated instruction content is wrapped in markers:
<!-- KNOWNS GUIDELINES START -->
# Knowns Guidelines
...
<!-- KNOWNS GUIDELINES END -->When markers already exist, Knowns replaces only the generated section and preserves the rest of the file.
- Guidelines - Canonical guidance flow
- Configuration - Project config fields
- MCP Integration - MCP setup details