Agent skill

Code Example Patterns

by revfactory in revfactory/harness-100

technical document code example pattern library. An agent skill from revfactory/harness-100.

Apache-2.0Auto-check passedWriting & Content

Install Code Example Patterns

skills CLI
$ npx skills add revfactory/harness-100 --skill code-example-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 code-example-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/81-technical-writer/.claude/skills/code-example-patterns .claude/skills/code-example-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-example-patterns
GitHub stars
1.3k
Token cost
~710 tokens
SKILL.md length
165 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

technical document code example pattern library. An agent skill from revfactory/harness-100.

  • Writing & Content work in your project
  • SKILL.md covers 5stage example structure, example vs example, by style guide and code composition pattern, plus 3 more sections
  • Needs API_KEY

What it does

Code Example Patterns is an agent skill from revfactory/harness-100. technical document code example pattern library. doc-writer agent code example, writingto do when reference. 'code example pattern', ' code writing' request when usage. However, actual code file test execution scope outside.

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Writing & Content. The licence is Apache-2.0.

When your agent uses it

  • Writing & Content work in your project

Example prompts

  • “code example pattern”
  • “code writing”
  • “/code-example-patterns”

Requirements

  • Python 3
  • A credential in API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python and markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Example Patterns loads about 710 tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 165 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~710

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 165 words, ~710 tokens.

Download SKILL.mdSave it as .claude/skills/code-example-patterns/SKILL.md (or your agent's skills folder).
name
code-example-patterns
description
technical document code example pattern library. doc-writer agent code example, writingto do when reference. 'code example pattern', ' code writing' request when usage. However, actual code file test execution scope outside.

Code Example Patterns — code example pattern library

doc-writer agent technical document includedto do code example quality pattern.

5stage example structure

1. goal — " code X perform"
2. companybefore condition — library, environment number, setting
3. core code — minimum work example
4. execution result — expected capability
5. extension point — "next stage Y to do number "

example vs example

** example** ( None):

python
result = client.process(data)

** example** (specialistbasisquality):

python
# pip install example-sdk
from example_sdk import Client

client = Client(api_key="your-api-key")
data = {"name": "test", "value": 42}
result = client.process(data)
print(result.status) # "success"

by style guide

Python
  • order: tablelevel → from →
  • type included (3.10+)
  • docstring: Google style (Args, Returns, Raises)
  • f-string usage, format degree
TypeScript
  • ESM import usage (require degree)
  • async/await usage (Promise degree)
  • person/type specify
  • try/catch error processing
cURL
  • ()as readability secure
  • environmentnumber information minute
  • expected annotationas included

code composition pattern

pattern 1: pointquality building (Progressive Build)
Step 1: minimum work code
Step 2: input processing addition
Step 3: error processing addition
Step 4: setting external
Step 5: code

each stagefrom **change departmentminute only **, existing code ...as approx..

pattern 2: problem-
markdown
#### problem: [specific problem description]
#### : [code and method]
pattern 3: comparison
methodadvantagedisadvantagecode
basisresult = fetch
basisnatureresult = await fetch

code annotation rule

ruledescription
WHY annotation"" writingdegree
WHAT prohibited"" code specialist
Korean annotationKorean documentfrom Korean
TODO prohibitedexample un-nature prohibited
description"actual environmentfrom..." annotation

information processing

python
# : environmentnumber
api_key = os.environ["API_KEY"]

# document placeholder
api_key = "your-api-key-here" # actual 

quality checklist

itemstandard
specialistbasisnatureimport~executionto company-basis work
error processingtry/catch included
type informationnumber/un-/exchange type specify
execution resultexpected capability included
informationwhen None
version specify/library version

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in en/81-technical-writer/.claude/skills/code-example-patterns of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Code Example Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Example Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Example Patterns this skillrevfactory/harness-1001.3k—~710Automated safety check: PassApache-2.0
HumanizerAzure-Samples/interview-coach-agent-framework17237 repos~5.8kAutomated safety check: PassMIT
Avoid AI Writingconorbronsdon/avoid-ai-writing4.9k3 repos~8.1kAutomated safety check: PassMIT
JavaScript Concept Fact Checkerleonardomso/33-js-concepts67k1 repos~5kAutomated safety check: PassMIT
User-Facing Text Cleanupguillaumemeyer/watermarks-remover23k—~3.5kAutomated safety check: PassMIT
Install Anti Sloptrycompai/crm11k1 repos~881Automated safety check: PassMIT

Similar skills

  • Humanizer

    Azure-Samples/interview-coach-agent-framework

    Official

    Remove signs of AI-generated writing from text. An agent skill from Azure-Samples/interview-coach-agent-framework.

    172 GitHub starsUsed in 37 repos~5.8k tokens
    Writing & ContentAuto-check passed
  • Avoid AI Writing

    conorbronsdon/avoid-ai-writing

    Audit and rewrite content to remove AI writing patterns ("AI-isms").

    4.9k GitHub starsUsed in 3 repos~8.1k tokens
    Writing & ContentAuto-check passed
  • JavaScript Concept Fact Checker

    leonardomso/33-js-concepts

    Verifies the technical accuracy of JavaScript concept pages by checking code examples, MDN and ECMAScript claims and external links through a five-phase method.

    67k GitHub starsUsed in 1 repo~5k tokens
    Writing & ContentAuto-check passed
  • User-Facing Text Cleanup

    guillaumemeyer/watermarks-remover

    Audits prose for invisible Unicode characters and rewrites it while keeping facts, citations, code and required disclosures unchanged and the writer's voice intact.

    23k GitHub stars~3.5k tokensUpdated 2 days ago
    Writing & ContentAuto-check passed
  • Install Anti Slop

    trycompai/crm

    Install and configure the anti-slop Oxlint plugin in a local TypeScript or JavaScript repository.

    11k GitHub starsUsed in 1 repo~881 tokens
    Writing & ContentAuto-check passed
  • Social Content

    freekmurze/dotfiles

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, Facebook, or other platforms.

    1k GitHub starsUsed in 22 repos~2.1k tokens
    Writing & ContentAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Questions about Code Example Patterns

What does Code Example Patterns do?

technical document code example pattern library. An agent skill from revfactory/harness-100. Code Example Patterns is an agent skill from revfactory/harness-100. technical document code example pattern library.

When should I use Code Example Patterns?

Code Example Patterns fits situations like: writing & Content work in your project.

How do I install Code Example Patterns in Claude Code?

Run `npx skills add revfactory/harness-100 --skill code-example-patterns -a claude-code`. Or copy the skill folder (en/81-technical-writer/.claude/skills/code-example-patterns in revfactory/harness-100) into .claude/skills/code-example-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Code Example Patterns in Codex?

Run `npx skills add revfactory/harness-100 --skill code-example-patterns -a codex`. Or copy the skill folder (en/81-technical-writer/.claude/skills/code-example-patterns in revfactory/harness-100) into .agents/skills/code-example-patterns in your project. Codex loads it when a task matches its description.

Can I use Code Example Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill code-example-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-example-patterns, .gemini/skills/code-example-patterns, .github/skills/code-example-patterns and .opencode/skills/code-example-patterns in your project.

What does Code Example Patterns need to run?

Going by SKILL.md and its folder, Code Example Patterns needs credentials named API_KEY. Our summary lists: Python 3; A credential in API_KEY.

Does Code Example Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Example Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Example Patterns use?

Code Example Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Example Patterns use?

About 710 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Example Patterns?

Skills that share tags, products or a category with Code Example Patterns: Humanizer (Azure-Samples/interview-coach-agent-framework, 172 stars), Avoid AI Writing (conorbronsdon/avoid-ai-writing, 4.9k stars), JavaScript Concept Fact Checker (leonardomso/33-js-concepts, 67k stars) and User-Facing Text Cleanup (guillaumemeyer/watermarks-remover, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Example Patterns?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.