/pm-workspace:workspace-integrityfrom pm-workspace
Audita la integridad del workspace detectando drift entre documentación y sistema real, reglas huérfanas, agentes sobredimensionados y baseline desactualizado. Útil pre-push, tras refactors o en auditorías mensuales.
Ships in pm-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Auditores de integridad documento-realidad. Ref: SE-043/046/047/048/052/057.
git push)| Script | Spec | Detecta |
|---|---|---|
claude-md-drift-check.sh | SE-043 | Counters en CLAUDE.md vs filesystem (agents/commands/skills/hooks) |
baseline-tighten.sh | SE-046 | Baseline metrics stale tras cambios estructurales |
agents-catalog-sync.sh | SE-047 | Drift entre docs/rules/domain/agents-catalog.md y .opencode/agents/ |
rule-orphan-detector.sh | SE-048 | Reglas en docs/rules/domain/ sin referencias cruzadas |
rule-manifest-integrity.sh | SE-057 | docs/rules/INDEX.md vs ficheros reales |
agent-size-audit.sh + agent-size-remediation-plan.sh | SE-052 | Agents > umbral lineas; plan de split |
rule-usage-analyzer.sh | — | Estadisticas de uso de reglas domain |
Cada línea de este bloque se ejecuta tal cual en tests/test-workspace-integrity.bats.
bash scripts/claude-md-drift-check.sh # texto; exit 0 PASS, 2 drift
bash scripts/rule-manifest-integrity.sh --json # exit 0 PASS, 1 finding
bash scripts/agents-catalog-sync.sh --check --json # exit 0 en sync, 1 drift
bash scripts/rule-orphan-detector.sh --json # exit 0 PASS, 1 orphans
bash scripts/agent-size-audit.sh --quiet # exit 0 PASS, 1 agentes > 4096 bytes
| Script | PASS | Drift / finding | Uso incorrecto |
|---|---|---|---|
claude-md-drift-check.sh | 0 | 2 | — |
rule-manifest-integrity.sh, rule-orphan-detector.sh | 0 | 1 | 2 |
agents-catalog-sync.sh --check | 0 | 1 | 2 (sin --check/--generate/--apply) |
agent-size-audit.sh | 0 | 1 (--ratchet: solo si supera el baseline) | 2 |
baseline-tighten.sh | 0 | 1 (regresión: actual > baseline; no la enmascara) | 2 |
JSON: rule-manifest-integrity, rule-orphan-detector, agents-catalog-sync --check --json, agent-size-remediation-plan y rule-usage-analyzer. claude-md-drift-check y agent-size-audit solo emiten texto.
claude-md-drift-check.sh ya bloquea vía readiness-check.sh.rule-orphan-detector notifica (no bloquea) si encuentra orphans.agent-size-audit --ratchet compara con .ci-baseline/agent-size-violations.count.claude-md-drift-check, rule-manifest-integrity, rule-orphan-detector, agents-catalog-sync --check) no modifican ficheros.agent-size-audit escribe su informe en output/.agents-catalog-sync --apply reescribe docs/rules/domain/agents-catalog.md.baseline-tighten reescribe el baseline indicado; solo baja, nunca sube, y --dry-run no escribe.readiness-check.sh) ni hace push o merge.¿CI falla por counter drift?
→ SE-062.1 counter sync (usar claude-md-drift-check.sh)
¿Spec ID duplicado?
→ Revisar docs/propuestas, resolve per SE-044
¿Rule orphan?
→ Remover rule o anadir referencia
¿Agent oversized?
→ agent-size-remediation-plan.sh genera split plan
scripts/claude-md-drift-check.shscripts/baseline-tighten.shscripts/agents-catalog-sync.shscripts/rule-orphan-detector.shscripts/agent-size-audit.shscripts/rule-manifest-integrity.shdocs/propuestas/SE-062-era184-consolidation-hygiene.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: dependencies: Invalid input: expected array, received object, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
139 skills in this plugin
/adversarial-securityUsar cuando se necesita auditar la seguridad de un proyecto con pipeline Red Team / Blue Team./agent-code-mapUsar cuando un agente necesita conocer la arquitectura del proyecto sin leer ficheros completos./agent-file-mapUsar cuando se trabaja con ficheros externos al workspace que los agentes deben localizar./agent-messagingUsar cuando un agente debe enviar un mensaje a otro agente con roles y receipts, sin pasar por el usuario. Triggers: mensaje a otro agente, agent-message, notify agent, inbox.Other plugins' skills for the same job