validate-usercontext-instructions

Um validador de ficheiros de instruções que descrevem o contexto do utilizador. Verifica a estrutura, as secções necessárias, a qualidade do conteúdo e a conformidade com critérios de pontuação.

In plain words
What is it for?
Serve para rever ficheiros com o contexto, preferências e objetivos de uma pessoa antes de serem usados por um agente de programação.
Why use it?
Evita reutilizar ou publicar um ficheiro de contexto incompleto ou fora do formato esperado. Também destaca avisos e recomendações de melhoria.

Skill for Claude CodeCodex

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 skills/msiccdev/ai-context-kit/validate-usercontext-instructions
Any agent
npx skills add MSiccDev/ai-context-kit --skill validate-usercontext-instructions
Clone the repo
git clone --depth 1 https://github.com/MSiccDev/ai-context-kit

Made for: Claude Code, Codex.

Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 548 The whole file, excluding the scripts and references it only reads on demand.
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.00024 $0.00548
Opus 5 $0.00012 $0.00274
Sonnet 5 $0.00005 $0.00110
Haiku 4.5 $0.00002 $0.00055

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

Security

Grade A, and why

validate-usercontext-instructions 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 2d 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.

skills/validate-usercontext-instructions/SKILL.md · 58 lines

How it starts

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

Validate User Context Instructions

Purpose

Validate user-context instruction files and produce structured reports with issues, recommendations, and a compliance score based on a deterministic scoring rubric.

When To Use

  • Use this skill to validate *_usercontext.instructions.md files.
  • Use this skill before publishing or reusing a user-context file.
  • Do not use this skill for project AGENTS.md (project context) files.

How to Invoke

Load or attach this file's contents into your AI session to activate the workflow (paste, upload, or reference with #file:skills/validate-usercontext-instructions/SKILL.md in VS Code Copilot Chat). In Claude Projects, add it to project knowledge. See Invoking Skills in the README for full platform guidance.

Required Inputs

  • Target file path.
  • Expected spec version and required sections.
  • Validation strictness expectations (if any).

Workflow

  1. Run validation phases from references/phase-checks.md.
  2. Check for spec_version field in YAML frontmatter: flag as WARNING if absent (pre-existing files may predate this requirement); flag as WARNING if present but older than 1.4.3.
  3. Generate report using references/report-contract.md.
  4. Apply deterministic scoring from references/scoring.md.
  5. Classify findings into critical/warning/enhancement buckets.
  6. Produce implementation-ready recommendations.

Output Expectations

  • A markdown validation report with phase-by-phase findings.
  • Overall PASS/WARN/FAIL state and numeric score.
  • Actionable fixes for critical and warning issues.
  • Migration guidance when relevant.
  • Report schema follows references/report-contract.md.
  • Scoring and grade bands follow references/scoring.md.

Resources

  • Phase checks: references/phase-checks.md
  • Report contract: references/report-contract.md
  • Scoring model: references/scoring.md
  • Example target: ../../usercontexts/sample_usercontext.instructions.md
  • Example report: ../../usercontexts/sample_usercontext.validation.md

Read the full file on GitHub · 58 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 58 lines · 24 tokens per session scan A fff3d898d84d

Subscribe to this mod's changes

validate-usercontext-instructions is a skill published in the GitHub repository MSiccDev/ai-context-kit (12 stars, last pushed 4d ago), licensed MIT. It adds 24 tokens to every session and 548 once invoked, about $0.0001 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.