본문으로 건너뛰기
cccskills
무료GitHub에 공개

tracemantle

Validates and scores SKILL.md files against the agentskills.io specification; use when linting skills for cross-agent compatibility, description quality, or capability graph structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

TraceMantle is a local static analyzer for SKILL.md files. It validates frontmatter structure, scores advisory description features, checks file references, and extracts a capability graph from heading and backtick-reference patterns. Run it before committing a skill, plugging it into CI, or publishing to a skill registry.

Prerequisites

  • path - the SKILL.md file or directory to validate
  • prompt.txt - optional file path for a saved agent prompt (critique or graph extraction)
  • response.json - optional file path for an agent-provided JSON response

Validate a skill

Pass path to tracemantle for a full structural check against the agentskills.io specification. Validates name constraints, description quality, body sizing, file references, and cross-agent compatibility. The validation report is written to stdout. Exit codes: 0 no errors, 1 errors found, 2 input error (missing file), 3 symbolic passed but semantic critique flagged errors.

tracemantle <path>
tracemantle <path> --format json

Review a skill with an agent

tracemantle generates a structured critique prompt for path and ingests response.json as the agent's reply. Save the emitted prompt to prompt.txt. The merged validation report combines symbolic diagnostics and semantic findings from the critique.

tracemantle <path> --emit-critique-prompt > prompt.txt

Hand prompt.txt to your agent. The agent returns JSON. Save the response as response.json, then ingest it.

tracemantle <path> --ingest-critique response.json

Pass --critique-agent codex or --critique-agent cursor to select a prompt variant tuned for that platform. The critique JSON schema is identical across all agent targets.

Extract a capability graph

tracemantle extracts the capability graph from heading structure and backtick references in the body of path. Use prompt.txt for emitted graph prompts and ingest response.json from your agent for richer extraction.

Run graph analysis using the heuristic extractor (no agent needed):

tracemantle <path> --analyze-graph

For richer extraction, emit the graph prompt, run it through your agent, and ingest the response:

tracemantle <path> --emit-graph-prompt > prompt.txt
tracemantle <path> --ingest-graph response.json

Print the graph to stdout:

tracemantle <path> --emit-graph
tracemantle <path> --emit-graph --format json

When both heuristic and agent graphs are available, tracemantle compares them and emits graph.contradiction.heuristic_disagreement at error severity for agent-claimed edges that the heuristic does not confirm.

Check validation history

Append a record to the validation ledger for each --history run on path. The validation history uses immutable per-run records outside the skill bundle, under its parent evidence directory. Legacy history is read without being moved or deleted.

tracemantle <path> --history
tracemantle <path> --show-history
tracemantle <path> --show-history --format json

Each record stores a timestamp, TraceMantle version, bundle/configuration digests, validation modes and per-file results. Comparable prior passing records can produce a history regression warning. Legacy text hashes alone do not establish revision equivalence.

Compare release evidence

Use path with the manifest command to identify skill content and all packaged resources. Import evaluator output into a selected evidence store outside the bundle. Compare baseline and candidate bundles with policy and approved evidence from a trusted base commit. Missing evidence blocks release as unknown; imported model judgments are not proof of observed skill invocation. TraceMantle does not run agents or imported checkers.

tracemantle manifest <bundle> --format json
tracemantle compare <baseline> <candidate> --trusted-root <trusted-repo> --base-revision <full-commit-sha> --format json

Ordinary validation needs no evaluator, account, evidence store or policy. Passing static validation does not prove live agent behavior.

Available since 1.7.0: import canonical records with the neutral input format. Schema-2 policies can authorize scoped automation keys to approve complete records for a protected run without recurring digest commits. Existing schema-1 digest approval and additional signature requirements retain their meaning. The evidence workflow guide documents deployment and migration.

Outputs

  • validation report - diagnostic output written to stdout
  • capability graph - graph of capabilities, inputs, and outputs extracted from the skill body
  • validation ledger - immutable validation records outside the evaluated bundle

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고