/kvendra-skills:lint-claudemdfrom kvendra-skills
Verify a project's CLAUDE.md conforms to the canonical template — sections present, markers correct, manual_version + tier valid, project_id exists in KB. Warns on entity-ID drift smell.
Ships in kvendra-skills. 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.
None: SKILL.md is the whole skill.
Verifies that a project's CLAUDE.md conforms to the canonical tripartite model (per REQ-KVD-SKILLS-50F9E4 AC-CLAUDEMD-7). Reports structural defects (missing sections, broken markers, invalid tier) and drift smells (entity IDs in the Manual section, manual_version mismatch).
The skill is read-only: it does NOT modify files, does NOT touch the KB beyond verifying the project_id exists.
Engine calls in this skill use the bare tool name (entity_get(...), txn_create(...)). Your client adds its own prefix: call the tool of that name on the Kvendra server, the MCP server that exposes whoami, help and entity_get, whatever its name (mcp__plugin_kvendra-skills_kvendra-cloud__* from this plugin, mcp__claude_ai_<connector>__* from a claude.ai connector, mcp__<name>__* from claude mcp add, no prefix in other clients). Load its tools first if they are deferred. The local broker kvendra (kvendra_git, kvendra_aws…) is not the Kvendra server. If more than one server exposes them (for example the plugin server with a directory's KVENDRA_WS and a claude.ai connector on the default account), use the plugin server: it carries this directory's account. Without the plugin server, ask the user which one to use. Never mix two Kvendra servers in one task. If no server exposes those three tools, stop and tell the user the Kvendra environment is not available.
This skill respects the project's broker policy declared in
STD-<PROJ>-BROKER-POLICY and materialised at .kvendra-protected.
See help({topic:"broker-policy"}) for the schema and resolution
order. Ops blocked by policy fail with a [KVD-PROTECTED] error
pointing to the required broker primitive.
$ARGUMENTS may be:
<path> → absolute or relative path to the CLAUDE.md to lint.<cwd>/CLAUDE.md.If the MCP is unreachable, the project_id existence check (Step 5) is skipped with a warning, but structural checks still run. Lint is degraded but still useful — DO NOT STOP on broker absence for this skill (read-only, low blast radius).
Read the file. If it doesn't exist or is empty: fail with a clear message ("CLAUDE.md missing — run /onboard-project <PROJECT_ID> to bootstrap").
Required markers (case-sensitive):
<!-- manual_version: line (must be present somewhere in the file, conventionally line 1).<!-- KVENDRA:MANUAL --> and <!-- /KVENDRA:MANUAL --> (pair, in order).<!-- KVENDRA:PROJECT --> and <!-- /KVENDRA:PROJECT --> (pair, in order, AFTER Manual).## Particulars heading (anywhere after the Project closing marker — section content can be empty). The legacy Spanish heading ## Particularidades is an accepted variant for existing projects: report it as OK, never as drift. Missing or mis-ordered markers → ERROR with the specific defect.
Extract the version string from <!-- manual_version: X.Y -->.
^\d+\.\d+$. Otherwise ERROR.Compare against the canonical version. The canonical source is the plugin's bundled CLAUDE.md.template at <plugin-root>/CLAUDE.md.template (read its first HTML comment for manual_version). The KB STD entity is an optional mirror.
manual_version == plugin template manual_version → OK./sync-claudemd to upgrade").Look up the canonical STD by tags (not literal id — force_id is reserved for PRJ/CMP/REL, the entity id is server-generated):
entity_query({
entity_type: "STD",
project_id: "KVD",
tags_all: ["scope:claudemd", "scope:template"],
status: "active",
order_by: "updated_at_desc",
limit: 1
})
metadata.manual_version matches the plugin file → OK.Extract the Project section content (between the markers). Parse:
project_id line must match ^- \project_id`: **[A-Z]{3,6}**$`. Otherwise ERROR.tier line must match ^- \tier`: **(free|pro|team|enterprise)**$`. Otherwise ERROR.Optionally, run whoami and compare its tier with the declared one — report mismatch as INFO (not an error; the user may have intentionally overridden it).
entity_get({ entity_id: "PRJ-<PROJECT_ID>" })
Extract the Manual section content (between the markers). Apply heuristics for "drift toward logbook":
Scan for substrings that look like Kvendra entity IDs:
\b(REQ|ISSUE|REL|TXN|ROAD|ADR|PAT|CMP|STD|TEST|REG|SLA|GLO|RUN|UX|DOC|ENV|COST|CFG|IF|PRJ)-[A-Z0-9-]+\bPRJ-{{PROJECT_ID}} placeholder is OK (canonical template).Scan for known infra commands (sub-skill drift):
\b(aws |sam |cargo |npm publish|docker run|cloudfront )\bThe Manual section's Canonical message: line is the one line a project may
localise. Compare its meaning, never its language:
sync-claudemd Step 2) → OK. Never report a localised message
as drift or as a Manual edit./sync-claudemd").The Particulars section (legacy heading ## Particularidades) is free-form by design. Validate only:
## Particulars (template) or ## Particularidades (legacy, OK). A CLAUDE.md may contain private-value references ({{cfg:<key>}}): the
generating skills keep them unresolved on purpose, and the user resolves them
according to their role with private_value_resolve or the Kvendra dashboard.
A reference is never a defect, and this skill never resolves one.
{{cfg: + a concrete key (grammar
[a-z0-9][a-z0-9._-]{0,127}) + }}, not preceded by a backslash. The
generic {{cfg:<key>}} inside the note itself does not count.<!-- kvendra:private-refs … --> note is present → INFO,
listing the keys (never their values)./sync-claudemd").{{lvr:<key>}}, same key grammar, not preceded by a
backslash) are per-machine values the kvendra broker substitutes from the
owner's local vault. They are never a defect and need no note → INFO,
listing the keys (this skill cannot read a value, and never tries)./Users/<name>/…, /home/<name>/…) → WARNING
("machine-specific path: use ~/, a path relative to the workspace marker,
or a {{lvr:<key>}} if the broker consumes it").## lint-claudemd: <path>
### Result
<PASS | WARN | ERROR>
### Structure
- 3 sections present: ✅ | ❌ (<defect>)
- Markers correctly paired: ✅ | ❌ (<defect>)
- manual_version: <X.Y> ✅ | ❌ (<defect>)
### Project section
- project_id: <PROJECT_ID> ✅ | ❌
- tier: <tier> ✅ | ❌
- whoami match: ✅ | ⚠️ (<local> vs <whoami>) | (skipped — broker offline)
- PRJ entity exists in KB: ✅ | ⚠️ archived | ❌ not found | (skipped)
### Manual immutability checks
- No specific entity IDs: ✅ | ⚠️ found <list>
- No tech-specific commands: ✅ | ℹ️ found <list>
- Size ≤40 lines: ✅ <N> | ⚠️ <N> exceeds target
- Fail-safe message: ✅ template (EN) | ✅ localised | ⚠️ missing
### Particulars
- Section present: ✅ Particulars | ✅ Particularidades (legacy) <!-- lint-allow-es -->
- Has content: ✅ | ℹ️ empty
### Private values
- References: ✅ none | ℹ️ <N> kept (keys: <list>) | ⚠️ note missing
- Local references: ✅ none | ℹ️ <N> (keys: <list>)
- Literal home paths: ✅ none | ⚠️ <N> (lines: <list>)
### Findings detail
<one bullet per finding with line number if applicable>
### Recommendations
- <action if any>
env-check as part of a broader environment audit.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kvendraai/kvendra-skills --plugin kvendra-skills28 skills in this plugin
/analyzerTechnical analyst — takes a bug report and produces a root-cause analysis with exact files and lines, using the Kvendra KB/bugBug-testing pipeline orchestrator — coordinates 6 subagents with TXN, draft/active entities, and Kvendra KB traceability/changelogChange query tool — shows what changed, who, when and why, reading entity history (entity_get with include_history) and REL membership from the Kvendra KBOther plugins' skills for the same job
/deployDeploy a Kvendra component (e.g. CMP-KVD-WEB, CMP-KVD-ENTERPRISE) by executing the canonical deploy playbook from the KB. Generic, model-agnostic, STD-driven — no tech specifics in this skill.