Skip to content

fix(agent-surfaces): apply the danger policy to markdown and MCP, escape llms-full metadata - #92

Merged
mrgoonie merged 2 commits into
mainfrom
claude/eager-meninsky-1bcb15
Oct 15, 2026
Merged

mrgoonie merged 2 commits into
mainfrom
claude/eager-meninsky-1bcb15

Conversation

@mrgoonie

Copy link
Copy Markdown
Contributor

Closes #91

Changes

  • New shared markdown/listing-text.ts: isDangerListing and inlineText.
  • /skills/<slug>.md and MCP get_package now omit the SKILL.md body for risk_label = 'danger' (warning on .md; contentIncluded: false plus contentOmitted on MCP), matching llms-full.txt.
  • llms-full.txt (and the llms.txt index and .md header) flatten name, author, category and description to one line and escape a leading #, > and backticks.
  • docs/api-reference.md: documents the policy and that unknown (pre-scanner) rows, like caution and safe, keep their bodies.

Tests

  • pnpm typecheck: pass
  • pnpm test: 94 files, 2053 passed, 2 skipped
  • pnpm --filter web build: pass
  • New tests cover danger omission on all three surfaces, unknown/caution keeping bodies, and metadata injection (newlines, leading #/>, fence-opening backticks).

🤖 Generated with Claude Code

mrgoonie and others added 2 commits October 15, 2026 21:31
…ape llms-full metadata

Closes #91

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mrgoonie
mrgoonie merged commit 11f0f22 into main Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply the danger-listing policy to every agent surface and escape llms-full metadata

1 participant