Borrowing it
Nothing to install: this file belongs to Michael-Obele/shadcn-svelte-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Michael-Obele/shadcn-svelte-mcp/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/Michael-Obele/shadcn-svelte-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/michael-obele/shadcn-svelte-mcp/copilot-instructions)<a href="https://agentmods.dev/instructions/michael-obele/shadcn-svelte-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/michael-obele/shadcn-svelte-mcp/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/michael-obele/shadcn-svelte-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/michael-obele/shadcn-svelte-mcp/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02147 | $0.02147 |
| Opus 5.5 | $0.00859 | $0.00859 |
| Sonnet 5.5 | $0.00429 | $0.00429 |
| Haiku 4.5 | $0.00215 | $0.00215 |
Grade D, and why
shadcn-svelte-mcp copilot-instructions.md scanned grade D with 3 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 24d 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- .github/copilot-instructions.md - guidance for AI coding agents --> Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
- Verify protocol behavior with curl: `curl -X POST http://localhost:3000/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Verify protocol behavior with curl: `curl -X POST http://localhost:3000/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI assistant quick-start for this repository
This file gives concise, actionable instructions for an AI coding agent to be productive in this codebase.
- What this repo is
- A tmcp-based MCP server (lightweight, schema-agnostic MCP SDK). See
src/mcp/server.tsfor theMcpServerassembly,src/index.tsfor the Node/Bun HTTP entry, andsrc/stdio.tsfor local MCP clients. - Documentation is fetched in real-time from shadcn-svelte.com using Cheerio + Turndown (HTML → Markdown) and direct
.md/llms.txtendpoint fetching undersrc/services/.
- How to run / common developer commands
- Runtimes: Node >= 20.9.0 or Bun >= 1.1 (see
package.json"engines"). - Development:
bun run dev(HTTP server with watch on http://localhost:3000, MCP endpoint/mcp, health/health). - Type checking:
bun run check(runstsc --noEmitacross the project). - Local MCP:
bun run mcp(stdio transport). - Build:
bun run build(bundlessrc/index.ts+src/stdio.ts→dist/for Fly.io/Render). - Agent sync guard:
bun run check:agents(fails if the per-editor agent bodies inagents/drift apart;agents-md-snippet.mdis a declared variant). - Version guard:
bun run check-versions(package.jsonmust matchsrc/mcp/server.ts). - CI:
.github/workflows/ci.ymlrunscheck,check:agents,check-versions,bun test, and a report-only link check on every push and pull request. Onlybun.lockexists, so CI usesbun install --frozen-lockfile—npm cicannot work in this repo.
Important: AI-generated/progress documentation and ephemeral notes
- All AI-generated progress docs, status logs, design notes, or autogenerated markdown should be created or updated only inside the
ai-generated-docs/folder at the repository root. Do not place generated progress docs in other directories. - When moving or manipulating files as part of progress updates, prefer Git-aware operations (for example
git mv) so history is preserved.
Shell command preference
- When suggesting or running commands, prefer POSIX
bashcommands. Provide exact, copyable bash snippets and usegitfor VCS operations. Wrap examples in bash code blocks and avoid platform-specific shells unless requested.
- Big-picture architecture (quick map)
- MCP Server (
src/mcp/server.ts): exportsserver(tmcpMcpServer) andserverVersion. Registers 5 tools + 5 prompts, uses the Valibot adapter (@tmcp/adapter-valibot) — all schemas are valibot. - Entry points:
src/index.ts— srvx HTTP server (Node/Bun): Streamable HTTP at/mcp,/healthendpoint.src/stdio.ts—StdioTransportfor local MCP clients.
- Tools (
src/mcp/tools/*): each is created withdefineTool(...)fromtmcp/tooland follows the pattern: valibotschema,async (input) => tool.text(...) | tool.error(...). Examples:shadcn-svelte-get,shadcn-svelte-list,shadcn-svelte-icons,shadcn-svelte-search,bits-ui-get. - Prompts (
src/mcp/prompts/*): created withdefinePrompt(...)fromtmcp/prompt, valibotschema, return{ messages: [...] }. - Web scraping services:
src/services/doc-fetcher.ts(real-time doc fetching),src/services/catalog.ts(unified live catalog:llms.txtcategories + descriptions merged with thecomponent-discovery.tsregistry index andbits-ui-discovery.ts),src/services/catalog-search.ts(pure multi-term search core used by the search tool),src/services/cache-manager.ts(memory + optional KV + optional disk tiers, 3-day TTL).
- Project-specific conventions and gotchas (do not invent alternatives)
- Tools use
defineToolfromtmcp/toolwith valibot schemas (import * as v from "valibot") for input validation. Usev.object({...}),v.string(),v.number(),v.picklist([...])for string literals,v.optional(schema, default)for optional-with-default, andv.pipe(schema, v.description("..."))for field descriptions. Tool handlers MUST return content viatool.text(...)/tool.error(...)fromtmcp/utils— never a bare string. - Prompts use
definePromptfromtmcp/promptwith the same valibot schema conventions and return{ messages: [...] }(role: "user" | "assistant",content: { type: "text", text }). - The version anchor:
version: "x.y.z"insrc/mcp/server.tsMUST stay in sync withpackage.json(seescripts/check-versions.js/sync-versions*.js; regex isversion:\s*"[^"]+",). - Web scraping approach: tools fetch documentation in real-time from shadcn-svelte.com (
.mdendpoints,llms.txt, Cheerio+Turndown HTML fallback). Components are discovered dynamically from the live website. - The cache manager loads
node:fsdynamically so it stays loadable on runtimes without it, degrading to memory-only. Do not add staticnode:*imports to shared services. - Test file organization: ALWAYS place test files in the
test/directory at the repository root, never insrc/. Usegit mvwhen moving files to preserve version history.
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.
- 24d ago Changed · -8 lines · -179 tokens per session fd121a59eab3
- 25d ago Changed · +59 tokens per session 32a4e0d1afa7
- 26d ago Changed · +3 lines · +137 tokens per session 3f6c33286a55
- 1mo ago Changed · +23 lines · +373 tokens per session scan C → D 3c8e18e43bc8
- 1mo ago First seen · 79 lines · 1,757 tokens per session scan C 2d57e211ce50
shadcn-svelte-mcp copilot-instructions.md is an instructions file published in the GitHub repository Michael-Obele/shadcn-svelte-mcp (58 stars, last pushed 24d ago), licensed MIT. It adds 2,147 tokens to every session, about $0.0086 per session on Opus 5.5. A static security scan graded it D with 3 findings (hidden instructions, sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.