authoring-schemas

authoring-schemas is a skill for Claude Code from agentic-research/mache. It costs 111 tokens per session (1,688 once invoked), scanned A, original, Apache-2.0.

Instructions for creating projection schemas that map source code or structured data into a filesystem or graph. A schema describes how folders, files, and relationships are generated.

In plain words
What is it for?
Use them when creating or debugging a mache schema for sources such as SQLite, JSON, Go, or Python. The appropriate schema dialect depends on whether the input is data or source code.
Why use it?
They provide the required schema structure and selector rules, reducing errors when adding a new data source or programming language.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the mache plugin — 3 skills, 1 agent shipped together

Good fit Use them when creating or debugging a mache schema for sources such as SQLite, JSON, Go, or Python. The appropriate schema dialect depends on whether the input is data or source code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentic-research/mache/authoring-schemas
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.

Any agent
npx skills add agentic-research/mache --skill authoring-schemas
Clone the repo
git clone --depth 1 https://github.com/agentic-research/mache

Made for: Claude Code.

Or install mache, the plugin that ships this one along with the rest of its 3 skills, 1 agent.

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 authoring-schemas

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentic-research/mache/authoring-schemas.svg)](https://agentmods.dev/skills/agentic-research/mache/authoring-schemas)
Your own site
<a href="https://agentmods.dev/skills/agentic-research/mache/authoring-schemas"><img src="https://agentmods.dev/badge/skills/agentic-research/mache/authoring-schemas.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,688 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00111 $0.01688
Opus 5 $0.00056 $0.00844
Sonnet 5 $0.00022 $0.00338
Haiku 4.5 $0.00011 $0.00169

Measured 8d ago against content hash 6eb2bc65c994, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

authoring-schemas 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 8d 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.

plugin/skills/authoring-schemas/SKILL.md · 79 lines

How it starts

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

/mache:authoring-schemas — Write a mache projection schema

A mache schema (api/schema.go) projects data into a tree: TopologyNode (dirs) → Leaf (files). There are two dialects and the first decision is which you're in:

Source Walker Selector dialect Path
source code (.go, .py, …) tree-sitter / ASTWalker tree-sitter S-expressions: (kind field: (child) @cap) @scope examples/go-schema.json
data (.db, .json) JSONPath (ojg) JSONPath: $, $[*], $.item.field[*] examples/{nvd,kev}-schema.json

Start by copying the closest example and editing — never write from scratch.

Schema shape (the fields that matter)

Topology { version, table?, nodes[], file_sets?, diagrams? }
  Node   { name, selector?, refs?, language?, children[], files[], skip_self_match? }
  Leaf   { name, content_template, content_source?, attributes? }
  • name is a Go text/template rendered against the match — it can be a literal (functions), a field ({{.name}}), or a computed expression ({{replace .item.X ":" " "}}). Computed names become directory names.
  • selector picks matches. $ is the wildcard "everything at this level" (used for grouping dirs like functions/, types/).
  • content_template renders a leaf's bytes. The source leaf conventionally uses {{.scope}} — the matched construct's full source text.
  • refs are template strings; each rendered token calls AddRef(token, nodeID) → powers callers/.

Tree-sitter dialect (source code) — gotchas

Read the full file on GitHub · 79 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. 8d ago First seen · 79 lines · 111 tokens per session scan A 6eb2bc65c994

Subscribe to this mod's changes

authoring-schemas is a skill published in the GitHub repository agentic-research/mache (45 stars, last pushed 3d ago), licensed Apache-2.0. It adds 111 tokens to every session and 1,688 once invoked, about $0.0006 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 skills, from other repositories

lsp-inspect

Full code quality audit for a file, package, or directory. Supports batch mode (directory walk with --top ranking), comparison mode (--diff for branch-only issues), severity calibration by blast radius, fix suggestions, and confidence tiers. Applies a check taxonomy (dead symbols, silent failures, error wrapping…

blackwell-systems/agent-lsp · 126 tokens

lsp-refactor

End-to-end safe refactor workflow — blast-radius analysis, speculative preview, apply to disk, verify build, run affected tests. Inlines lsp-impact + lsp-safe-edit + lsp-verify + lsp-test-correlation into one coordinated sequence.

blackwell-systems/agent-lsp · 57 tokens

lsp-understand

Deep-dive exploration of unfamiliar code — given a symbol or file, builds a complete Code Map showing type info, implementations, call hierarchy (2-level depth limit), all references, and source. Broader than lsp-explore: accepts files, synthesizes multi-symbol relationships, and produces a navigable dependency map.

blackwell-systems/agent-lsp · 0 tokens

lsp-dead-code

Enumerate exported symbols in a file and surface those with zero references across the workspace. Use when auditing for dead code, cleaning up APIs, or checking which exports are safe to remove.

blackwell-systems/agent-lsp · 43 tokens

lsp-safe-edit

Wrap any code edit with before/after diagnostic comparison. Speculatively previews the change first (previewedit), then applies to disk only if the error delta is acceptable. If post-edit errors appear, surfaces code actions for quick fixes. Handles single and multi-file edits.

blackwell-systems/agent-lsp · 59 tokens

lsp-edit-export

Safe workflow for editing exported symbols or public APIs. Use when changing a function signature, modifying a public type, or altering any symbol used outside its own package — finds all callers first so nothing breaks silently.

blackwell-systems/agent-lsp · 46 tokens