Skip to content

Commit 4c5f632

Browse files
jedudenclaude
andauthored
Add inline schemas and path-patterns from markdown-audit (#276)
Cover four directories whose .md files share a tight front-matter shape but had no kind: docs/development/secret-rotations, docs/reference/cli, docs/development/release-channels, and docs/development/architecture. Each gets an inline schema (closed: false, sections permissive) plus a kind-assignment glob, matching the pattern audit-log already uses. Extend the skill kind-assignment and overrides to cover the marketplace mirror at editors/claude-code-audit/skills/*/SKILL.md so the canonical and mirrored skill files lint under the same rules. Add path-pattern: to plan, rule-readme, skill, and security-note. Each kind's proto.md is admitted via brace expansion so the existing self-referencing assignment continues to work. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4d22a76 commit 4c5f632

1 file changed

Lines changed: 72 additions & 2 deletions

File tree

.mdsmith.yml

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,14 @@ overrides:
9191
- urls
9292
blank-line-around-lists: false
9393
- glob: [".claude/skills/*/SKILL.md",
94+
"editors/claude-code-audit/skills/*/SKILL.md",
9495
".github/copilot-pr-fixup.md",
9596
".github/AGENTS-PR-FIXUP.md"]
9697
rules:
9798
max-file-length:
9899
max: 600
99-
- glob: [".claude/skills/*/SKILL.md"]
100+
- glob: [".claude/skills/*/SKILL.md",
101+
"editors/claude-code-audit/skills/*/SKILL.md"]
100102
rules:
101103
# required-structure.schema for SKILL.md files comes
102104
# from the `skill` kind; this override only carries
@@ -279,21 +281,80 @@ kinds:
279281
paragraph-readability: false
280282
paragraph-structure: false
281283
plan:
284+
path-pattern: "plan/{proto.md,[0-9][0-9]*_*.md}"
282285
rules:
283286
required-structure:
284287
schema: plan/proto.md
285288
rule-readme:
289+
path-pattern: "internal/rules/{proto.md,MDS[0-9]*-*/README.md}"
286290
rules:
287291
required-structure:
288292
schema: internal/rules/proto.md
289293
skill:
294+
path-pattern: "{.claude/skills,editors/claude-code-audit/skills}/{proto.md,*/SKILL.md}"
290295
rules:
291296
required-structure:
292297
schema: .claude/skills/proto.md
293298
security-note:
299+
path-pattern: "docs/security/{proto.md,[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-*.md}"
294300
rules:
295301
required-structure:
296302
schema: docs/security/proto.md
303+
architecture-doc:
304+
schema:
305+
frontmatter:
306+
title: 'string & != ""'
307+
slug: 'string & != ""'
308+
summary: 'string & != ""'
309+
closed: false
310+
sections:
311+
- heading: null
312+
required: false
313+
- heading:
314+
unlisted: true
315+
cli-command:
316+
schema:
317+
frontmatter:
318+
command: 'string & != ""'
319+
summary: 'string & != ""'
320+
closed: false
321+
sections:
322+
- heading: null
323+
required: false
324+
- heading:
325+
unlisted: true
326+
release-channel:
327+
schema:
328+
frontmatter:
329+
title: 'string & != ""'
330+
summary: 'string & != ""'
331+
registry: 'string & != ""'
332+
credential: 'string & != ""'
333+
job: 'string & != ""'
334+
closed: false
335+
sections:
336+
- heading: null
337+
required: false
338+
- heading:
339+
unlisted: true
340+
secret-rotation:
341+
schema:
342+
frontmatter:
343+
title: 'string & != ""'
344+
summary: 'string & != ""'
345+
lastRotated: '=~ "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"'
346+
periodDays: 'int & > 0'
347+
provider: 'string & != ""'
348+
issuerUrl: '=~ "^https?://"'
349+
usedBy: 'string & != ""'
350+
scope: 'string & != ""'
351+
releaseEnvScoped: 'bool'
352+
closed: false
353+
sections:
354+
- heading: null
355+
required: false
356+
- heading:
357+
unlisted: true
297358
audit-log:
298359
schema:
299360
frontmatter:
@@ -332,9 +393,18 @@ kind-assignment:
332393
kinds: [plan]
333394
- glob: ["internal/rules/proto.md", "internal/rules/MDS*/README.md"]
334395
kinds: [rule-readme]
335-
- glob: [".claude/skills/proto.md", ".claude/skills/*/SKILL.md"]
396+
- glob: [".claude/skills/proto.md", ".claude/skills/*/SKILL.md",
397+
"editors/claude-code-audit/skills/*/SKILL.md"]
336398
kinds: [skill]
337399
- glob: ["docs/security/*.md"]
338400
kinds: [security-note]
401+
- glob: ["docs/development/secret-rotations/*.md"]
402+
kinds: [secret-rotation]
403+
- glob: ["docs/reference/cli/*.md"]
404+
kinds: [cli-command]
405+
- glob: ["docs/development/release-channels/*.md"]
406+
kinds: [release-channel]
407+
- glob: ["docs/development/architecture/*.md"]
408+
kinds: [architecture-doc]
339409
- glob: ["docs/development/architecture-audit.md"]
340410
kinds: [audit-log]

0 commit comments

Comments
 (0)