Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add markerikson/opencode-config-example --skill code-style-reviewgit clone --depth 1 https://github.com/markerikson/opencode-config-exampleWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/markerikson/opencode-config-example/code-style-review)<a href="https://agentmods.dev/skills/markerikson/opencode-config-example/code-style-review"><img src="https://agentmods.dev/badge/skills/markerikson/opencode-config-example/code-style-review/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/markerikson/opencode-config-example/code-style-review"><img src="https://agentmods.dev/badge/skills/markerikson/opencode-config-example/code-style-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01508 |
| Opus 5.5 | $0.00016 | $0.00603 |
| Sonnet 5.5 | $0.00008 | $0.00302 |
| Haiku 4.5 | $0.00004 | $0.00151 |
Grade A, and why
code-style-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Style Review Skill
Create code style documentation that captures coding conventions, patterns, and guidelines for an existing codebase.
When to Use This Skill
- Onboarding to an unfamiliar codebase
- Creating style documentation for team reference
- Understanding patterns before contributing
- Documenting conventions that aren't captured in linter configs
Don't use for:
- High-level architecture (use
architecture-reviewskill) - Planning new features (use
feature-designskill)
File Location
Code style reviews live in the dev-plans repository:
dev-plans/
└── {project}/
└── architecture/
├── YYYY-MM-DD-architecture.md
└── YYYY-MM-DD-code-style.md
Naming: YYYY-MM-DD-code-style.md
Analysis Process
1. Gather Evidence
Before writing, examine:
Config files:
.eslintrc*,eslint.config.*- Linting rules.prettierrc*,prettier.config.*- Formatting rulestsconfig.json- TypeScript settingsbiome.json,ruff.toml, etc. - Other linters/formatters
Sample code:
- 3-5 core source files
- 2-3 test files
- Entry points and exports
Existing docs:
CONTRIBUTING.mdSTYLE.mdor similar- README sections on code style
2. Observe, Don't Prescribe
Document what IS, not what should be:
- Note inconsistencies without judgment
- Include examples from actual code
- Reference file paths for patterns
Document Template
# Code Style: {Project Name}
**Analyzed:** YYYY-MM-DD
**Codebase:** {path or repo}
---
## Naming Conventions
### Files and Directories
[How are files named? kebab-case, camelCase, PascalCase?]
- Source files: `{pattern}` (e.g., `user-service.ts`)
- Test files: `{pattern}` (e.g., `user-service.test.ts`)
- Component files: `{pattern}` (if applicable)
- Directories: `{pattern}`
### Functions and Methods
[Naming patterns for functions]
```typescript
// Example from codebase
Classes and Types
[Naming patterns for classes, interfaces, types]
// Example from codebase
Variables and Constants
- Variables:
{pattern}(e.g., camelCase) - Constants:
{pattern}(e.g., SCREAMING_SNAKE_CASE) - Private members:
{pattern}(e.g., _prefixed or #private)
File Organization
Directory Structure Pattern
src/
├── {pattern}/ # {what goes here}
├── {pattern}/ # {what goes here}
└── {pattern}/ # {what goes here}
File Structure Pattern
[How are individual files typically organized?]
// 1. Imports (grouped how?)
// 2. Types/interfaces
// 3. Constants
// 4. Main exports
// 5. Helper functions
Module Boundaries
[How are modules separated? Barrel exports? Index files?]
Import Style
Grouping
[How are imports organized?]
// Example showing import organization
Preferred Patterns
- Absolute vs relative imports: {pattern}
- Barrel imports: {used/not used}
- Type imports: {inline vs separate}
Code Patterns
Common Patterns
{Pattern Name}
Where used: {locations}
// Example from codebase
{Pattern Name}
Where used: {locations}
// Example from codebase
Async Patterns
[How is async code typically written?]
// Example
State Management (if applicable)
[Patterns for managing state]
Error Handling
Error Types
[What error types/classes are used?]
// Example
Throwing Errors
[Pattern for throwing errors]
Catching Errors
[Pattern for catching and handling errors]
Logging
[How is logging done? What levels? What format?]
// Example
Testing
Test File Location
- Pattern:
{where tests live} - Naming:
{test file naming pattern}
Test Structure
// Example test structure from codebase
Mocking Patterns
[How are mocks typically done?]
What Gets Tested
[Unit tests? Integration tests? What's the focus?]
Tooling
Linter
- Tool: {ESLint, Biome, etc.}
- Config:
{path to config} - Key rules: {notable enabled/disabled rules}
Formatter
- Tool: {Prettier, Biome, etc.}
- Config:
{path to config} - Key settings: {tab width, quotes, etc.}
Type Checking
- Config:
{path to tsconfig} - Strictness: {strict mode? key compiler options}
Pre-commit
[Any pre-commit hooks? Husky? lint-staged?]
Do's and Don'ts
Do
- [Pattern to follow]
- [Pattern to follow]
- [Pattern to follow]
Don't
- [Anti-pattern to avoid]
- [Anti-pattern to avoid]
- [Anti-pattern to avoid]
Inconsistencies Noted
[Any inconsistencies observed in the codebase - not judgmental, just factual]
- {inconsistency 1}
- {inconsistency 2}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 326 lines · 40 tokens per session scan A ede5fc22abee
code-style-review is a skill published in the GitHub repository markerikson/opencode-config-example (48 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 1,508 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…