ai-md
Convert human-written CLAUDE.md into AI-native structured-label format.
Skill by manu14357
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/manu14357-ai-md
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ai-md
What's inside
- Skill name
ai-md- Description
- Convert human-written CLAUDE.md into AI-native structured-label format. Battle-tested across 4 models. Same rules, fewer tokens, higher compliance.
- License
- MIT
- Instructions
- 517 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 517 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# AI.MD v4 — The Complete AI-Native Conversion System ## When to Use This Skill - Use when your CLAUDE.md is long but AI still ignores your rules - Use when token usage is too high from verbose system instructions - Use when you want to optimize any LLM system prompt for compliance - Use when migrating rules between AI tools (Claude, Codex, Gemini, Grok) ## What Is AI.MD? AI.MD is a methodology for converting human-written `CLAUDE.md` (or any LLM system instructions) into a structured-label format that AI models follow more reliably, using fewer tokens. **The paradox we proved:** Adding more rules in natural language DECREASES compliance. Converting the same rules to structured format RESTORES and EXCEEDS it. ``` Human prose (6 rules, 1 line) → AI follows 4 of them Structured labels (6 rules, 6 lines) → AI follows all 6 Same content. Different format. Different results. ``` --- ## Why It Works: How LLMs Actually Process Instructions LLMs don't "read" — they **attend**. Understanding this changes everything. ### Mechanism 1: Attention Splitting When multiple rules share one line, the model's attention distributes across all tokens equally. Each rule gets a fraction of the attention weight. Some rules get lost. When each rule has its own line, the model processes it as a distinct unit. Full attention weight on each rule. ``` # ONE LINE = attention splits 5 ways (some rules drop to near-zero weight) EVIDENCE: no-fabricate no-guess | 禁用詞:應該是/可能是 → 先拿數據 | Read/Grep→行號 curl→數據 | "好像"/"覺得"→自己先跑test | guess=shame-wall # FIVE LINES = each rule gets full attention EVIDENCE: core: no-fabricate | no-guess | unsure=say-so banned: 應該是/可能是/感覺是/推測 → 先拿數據 proof: all-claims-need(data/line#/source) | Read/Grep→行號 | curl→數據 hear-doubt: "好像"/"覺得" → self-test(curl/benchmark) → 禁反問user violation: guess → shame-wall ``` ### Mechanism 2: Zero-Inference Labels Natural language forces the model to INFER meaning from context. Labels DECLARE meaning explicitly. No inference needed = no misinterpretation. ``` # AI must infer: what does (防搞混) modify? what does 例外 apply to? GATE-1: 收到任務→先用一句話複述(防搞混)(長對話中每個新任務都重新觸發) | 例外: signals命中「處理一下」=直接執行 # AI reads labels directly: trigger→action→exception. Zero ambiguity. GATE-1 複述: trigger: new-task action: first-sentence="你要我做的是___" persist: 長對話中每個新任務都重新觸發 exception: signal=處理一下 → skip yields-to: GATE-3 ``` Key insight: Labels like `trigger:` `action:` `exception:` work across ALL languages. The model doesn't need to parse Chinese/Japanese/English grammar to understand structure. **Labels are the universal language between humans and AI.** ### Mechanism 3: Semantic Anchoring Labeled sub-items create **matchable tags**. When a user's input contains a keyword, the model matches it directly to the corresponding label — like a hash table lookup instead of a full-text search. ``` # BURIED: AI scans the whole sentence, might miss the connection 加新功能→第一句問schema | 新增API/endpoint=必確認health-check.py覆蓋 # ANCHORED: label "new-api:" directly matches user saying "加個 API" MOAT: new-feature: 第一句問schema/契約/關聯 new-api: 必確認health-check.py覆蓋(GATE-5) ``` **Real proof:** This specific technique fixed a test case that failed 5 consecutive times across all models. The label `new-api:` raised Codex T5 from ❌→✅ on first try. --- ## The Conversion Process: What Happens When You Give Me a CLAUDE.md Here's the exact mental model I use when converting natural language instructions to AI.MD format. ### Phase 1: UNDERSTAND — Read Like a Compiler, Not a Human I read the CLAUDE.md **as if I'm building a state machine**, not reading a document. For each sentence, I ask: 1. **Is this a TRIGGER?** (What input activates this behavior?) 2. **Is this an ACTION?** (What should the AI do?) 3. **Is this a CONSTRAINT?** (What should the AI NOT do?) 4. **Is this METADATA?** (Priority, timing, persistence, exceptions?) 5. **Is this a HUMAN EXPLANATION?** (Why the rule exists — delete this) Example analysis: ``` Input: "收到任務→先用一句話複述(防搞混)(長對話中每個新任務都重新觸發) | 例外: signals命中「處理一下」=直接執行" Decomposition: ├─ TRIGGER: "收到任務" → new-task ├─ ACTION: "先用一句話複述" → first-sentence="你要我做的是___" ├─ DELETE: "(防搞混)" → human motivation, AI doesn't need this ├─ METADATA: "(長對話中每個新任務都重新觸發)" → persist: every-new-task └─ EXCEPTION: "例外: signals命中「處理一下」=直接執行" → exception: signal=處理一下 → skip
From manu14357/zskills, MIT.
More from manu14357/zskills
- 0.555score
c4-architecture
manu14357
Generate architecture documentation using C4 model Mermaid diagrams.
SkillCFreshness: C★ 16Claude Code +9 - 0.550score
backend-to-frontend-handoff-docs
manu14357
Create API handoff documentation for frontend developers.
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-engineering-toolkit
manu14357
6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit…
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-dev-jobs-mcp
manu14357
Search 8,400+ AI and ML jobs across 489 companies, inspect listings and employers, match roles, and view salary and market stats via AI Dev Jobs MCP
SkillCFreshness: C★ 16Claude Code +9 - 0.538score
ai-product
manu14357
Every product will be AI-powered.
SkillCFreshness: C★ 16Claude Code +9 - 0.519score
agent-manager-skill
manu14357
Manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.
SkillCFreshness: C★ 16Claude Code +9 - 0.513score
agent-memory-systems
manu14357
Memory is the cornerstone of intelligent agents.
SkillCFreshness: C★ 16Claude Code +9 - 0.485score
browser-testing-with-devtools
manu14357
Tests in real browsers.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
azure-compliance
manu14357
Map Azure architectures and operations to security and compliance controls.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
azure-cloud-migrate
manu14357
Plan and execute cloud migrations to Azure from on-premises or other clouds.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
azure-aigateway
manu14357
Design an Azure AI gateway layer for centralized model routing, policy enforcement, and operational control.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
appinsights-instrumentation
manu14357
Instrument applications with Azure Application Insights and OpenTelemetry for end-to-end observability.
SkillDFreshness: D★ 16Claude Code +9
Signals
- Stars
- 16
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- May 6, 2026 (5 months ago)
- Last release
- Apr 26, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/manu14357/zskills
- Website
- zskills.vercel.app
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from manu14357
- 0.555score
c4-architecture
manu14357
Generate architecture documentation using C4 model Mermaid diagrams.
SkillCFreshness: C★ 16Claude Code +9 - 0.550score
backend-to-frontend-handoff-docs
manu14357
Create API handoff documentation for frontend developers.
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-dev-jobs-mcp
manu14357
Search 8,400+ AI and ML jobs across 489 companies, inspect listings and employers, match roles, and view salary and market stats via AI Dev Jobs MCP
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-engineering-toolkit
manu14357
6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit…
SkillCFreshness: C★ 16Claude Code +9 - 0.538score
ai-product
manu14357
Every product will be AI-powered.
SkillCFreshness: C★ 16Claude Code +9 - 0.519score
agent-manager-skill
manu14357
Manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.
SkillCFreshness: C★ 16Claude Code +9
Cite this page
ai-md skill. Agent Mart. https://agentmart.dev/skills/manu14357-ai-md (last updated 2026-10-24)