c3-skill AGENTS.md

c3-skill AGENTS.md is an instructions file for Codex, OpenCode from lagz0ne/c3-skill. It costs 593 tokens per session, scanned A, original, MIT.

Project instructions for using the local C3 design-agent source and its command-line wrapper. C3 is the repository’s design and workflow tool.

In plain words
What is it for?
They guide loading the correct skill, running C3 commands, building the local wrapper when needed, using red-green TDD, and verifying changes.
Why use it?
They prevent accidental use of a different installed C3 version and require test-first changes plus project-specific checks.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/lagz0ne/c3-skill/agents-md
Clone the repo
git clone --depth 1 https://github.com/lagz0ne/c3-skill

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for c3-skill AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lagz0ne/c3-skill/agents-md.svg)](https://agentmods.dev/instructions/lagz0ne/c3-skill/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lagz0ne/c3-skill/agents-md"><img src="https://agentmods.dev/badge/instructions/lagz0ne/c3-skill/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 593 This file is loaded in full into every session.
When invoked 593 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00593 $0.00593
Opus 5 $0.00296 $0.00296
Sonnet 5 $0.00119 $0.00119
Haiku 4.5 $0.00059 $0.00059

Measured 4d ago against content hash 1193210c2773, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

c3-skill AGENTS.md 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 4d 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.

AGENTS.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C3 Design Agent Instructions

Local C3 Source Rule

This repository is the C3 project source. All C3 operations here must use this checkout, not an installed/global C3 skill.

Hard rules:

  • Do not use bare c3x; it may resolve to a global installed skill.
  • Do not load C3 from ~/.agents/skills/c3, ~/.claude/skills/c3, ~/.codex/skills/c3, or marketplace installs for this repo.
  • Load C3 skill instructions from skills/c3/SKILL.md in this repository.
  • Run C3 through the local built wrapper:
C3X_MODE=agent bash skills/c3/bin/c3x.sh <command>

If the local wrapper or binary is missing, build it first:

bash scripts/build.sh

Then create a session-local alias/function and use it for every C3 command:

alias c3local='C3X_MODE=agent bash skills/c3/bin/c3x.sh'
c3local check

If command behavior, output format, or verification result seems inconsistent with this source tree, be doubtful. First prove which binary and skill path are being used, then continue.

Workflow

  • Use RED-GREEN-TDD for changes.
  • Keep .c3/c3.db treated as disposable local cache, not submitted truth.
  • Verify with c3local check and the relevant project tests before done.
  • For code changes in cli/, run go test ./... from cli/.

CLI Flow Principles

  • CLI commands should lead within their capabilities: inspect what they can prove, return the smallest useful answer, and include the next repair step when there is a failure.
  • In C3X_MODE=agent, structured command output must be TOON, not JSON. Do not add command-local json.NewEncoder paths for agent-facing command results; route through the shared output helpers.
  • Failure output is part of the workflow contract. Prefer grouped blockers and direct fix loops over one-error-at-a-time guessing, but keep operations tight enough that the command cannot leave canonical .c3/ files in an impossible partial state.
  • Broken canonical .c3/ state should block read-only commands, but repair mutations must still run. Use write --section, set --section, or add adr for focused repair, then finish with c3local check --include-adr.
  • For migration failures, follow the CLI's printed fix loop exactly. BLOCKED: N component(s) means no migration writes occurred; use c3local migrate repair-plan, repair listed sections with c3local migrate repair <id> --section <name>, run c3local cache clear, import, continue migration, then check/verify.

Read the full file on GitHub · 46 lines

Changes

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.

  1. 4d ago First seen · 46 lines · 593 tokens per session scan A 1193210c2773

Subscribe to this mod's changes

c3-skill AGENTS.md is an instructions file published in the GitHub repository lagz0ne/c3-skill (12 stars, last pushed 1mo ago), licensed MIT. It adds 593 tokens to every session, about $0.0030 per session on Opus 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.

Related

Other instructions, from other repositories

solidworks-api-skill CLAUDE.md

Instructions for guoleizhen717/solidworks-api-skill, covering solidworks api skill repository, repository purpose, skill scope and project conventions.

guoleizhen717/solidworks-api-skill · 205 tokens

q3ds-solidworks-mcp AGENTS.md

AGENTS.md instructions for zarcherlot/q3ds-solidworks-mcp, covering codex repository guidance, architecture, drawing planning and verification.

zarcherlot/q3ds-solidworks-mcp · 483 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens