validate-project-instructions

Um validador de ficheiros AGENTS.md que verifica as instruções específicas de um projeto. Esses ficheiros dizem ao agente de programação como trabalhar dentro desse projeto.

In plain words
What is it for?
Serve para rever instruções de projeto, confirmar que o estado da sessão e os papéis estão bem definidos e verificar referências a comandos e secções obrigatórias.
Why use it?
Encontra secções em falta, definições incompletas e problemas nas regras antes de as instruções serem usadas. A avaliação segue critérios e pontuação definidos.

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

Made for: Claude Code, Codex.

Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 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.00028 $0.00535
Opus 5 $0.00014 $0.00267
Sonnet 5 $0.00006 $0.00107
Haiku 4.5 $0.00003 $0.00053

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

Security

Grade A, and why

validate-project-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-project-instructions/SKILL.md · 57 lines

How it starts

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

Validate Project Context AGENTS

Purpose

Validate project-context AGENTS.md files with structured checks for required sections, session-state controls, role definitions, and core required-section completeness based on a deterministic scoring rubric.

When To Use

  • Use this skill to validate project-context AGENTS.md files.
  • Use this skill when reviewing project context quality prior to active use.
  • Do not use this skill for user-context instruction validation.

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-project-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 project-context AGENTS.md path.
  • Expected section model and command reference expectations.
  • Any strictness preferences for warnings vs required fixes.

Workflow

  1. Run validation phases from references/phase-checks.md.
  2. Check for <!-- spec_version: ... --> comment: 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 project-specific remediation guidance.

Output Expectations

  • Structured markdown report with five validation phases.
  • Clear status for critical issues vs warnings.
  • Numeric score and grading band.
  • Concrete example fixes for major gaps.
  • 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: ../../AGENTS.md

Read the full file on GitHub · 57 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 · 57 lines · 28 tokens per session scan A 595758a3fd5c

Subscribe to this mod's changes

validate-project-instructions is a skill published in the GitHub repository MSiccDev/ai-context-kit (12 stars, last pushed 4d ago), licensed MIT. It adds 28 tokens to every session and 535 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.