[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADPVQCAEYV3Q9E9NX6Z9SS":3,"skill-same:01M7ADPVQCAEYV3Q9E9NX6Z9SS":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7ADPVQCAEYV3Q9E9NX6Z9SS","mcp-context-audit",null,"Use when considering adding an MCP server, when context feels bloated with tool definitions, when auditing which MCP servers consume the most context window budget, or before committing a change to mcp_config.json. Estimates per-server tool-definition token cost and flags bloat.","Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-context-audit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mcp-context-audit\ndescription: Use when considering adding an MCP server, when context feels bloated with tool definitions, when auditing which MCP servers consume the most context window budget, or before committing a change to mcp_config.json. Estimates per-server tool-definition token cost and flags bloat.\ntriggers: [user, model]\n---\n\n# MCP Context Audit\n\n## Why\n\nEvery MCP server injects **all its tool definitions** into the system prompt\nof every conversation. Two \"plug-and-play\" servers can consume a third of a\n200k window before the first user message. This is the fastest way to bloat\ncontext and trigger lost-in-the-middle. Audit before adding; keep only what\nearns its tokens.\n\nRule of thumb: **tool count per server under 10-15** keeps tool-selection\naccuracy above 90% (arXiv:2606.30317). Above that, the model picks the wrong\ntool more often than not.\n\n## When to Use\n\n- About to add an MCP server to `mcp_config.json`.\n- Context feels bloated and MCP tool definitions are suspected.\n- Periodic hygiene review of configured servers.\n- A server exposes many tools and you want to know the token cost.\n\n## When NOT to Use\n\n- No MCP servers configured - nothing to audit.\n- You already know the cost and have decided to keep the server.\n\n## Audit by tool\n\nMeasure the cost of each tool definition, not just the server total. If a server exposes many tools but the task uses only a few, prefer a narrower server or disable the unused tools if the server supports scoping.\n\n## Workflow\n\n### Step 1: List configured servers\n\n```\nexec: python3 \"{{APPDATA}}\u002Fdevin\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py\" --config mcp_config.json\n```\n\nReads `mcp_config.json` and reports each server's transport, command\u002Furl, and\na static bloat risk (based on config complexity). No tool calls made.\n\n### Step 2: Measure real tool counts\n\nThe script cannot call MCP tools itself. You (the agent) list tools per\nserver and feed the result to the script for token estimation:\n\n```\nmcp_list_tools server_name=\"atlassian\"\n```\n\nCapture the tool list, then pipe it to the estimator:\n\n```\nexec: python3 \"{{APPDATA}}\u002Fdevin\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py\" --tools - \u003C tools_atlassian.json\n```\n\nOr pass a file:\n\n```\nexec: python3 \"{{APPDATA}}\u002Fdevin\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py\" --tools tools_atlassian.json\n```\n\nThe script estimates token cost of the tool definitions (chars\u002F4 heuristic)\nand flags servers over the 10-15 tool threshold.\n\n### Step 3: Decide\n\n| Signal | Action |\n|---|---|\n| Server unused in N sessions | Remove from `mcp_config.json` |\n| Tool count > 15 | Prefer a narrower server, or scope tools if the server supports it |\n| Token cost > 5% of window | Justify with concrete usage; else remove |\n| Untrusted server | Review code\u002Fpermissions first; run in sandbox |\n\n### Step 4: Verify after removal\n\nRe-run Step 1 to confirm the server is gone and the budget dropped.\n\n## Anti-Patterns\n\n- **Adding servers \"just in case.\"** Permanent context tax for speculative use.\n- **Auditing once and never again.** Servers grow tools over time; re-audit.\n- **Trusting tool count alone.** A 5-tool server with huge descriptions can\n  cost more than a 15-tool server with terse ones. Check token cost.\n- **Skipping the trust review.** MCP servers run with user permissions;\n  evaluate the 5 architecture patterns \u002F 4 anti-patterns before adding.\n\n## Source\n\n- Tool-count accuracy threshold: arXiv:2606.30317 (\u003C10-15 tools\u002Fserver for\n  >90% selection accuracy).\n- MCP architecture patterns \u002F anti-patterns: trust checklist above.\n\n## Cross-skills\n\n- After auditing, invoke `mcp-lazy-enablement` to decide which servers to keep active or disable.\n- Context bloat from MCP: \"Context Windows Explained for Coding Agents\"\n  (Matt Pocock) - MCP servers can consume a third of the window before the\n  first message.\n\nIf the user asks about a specific MCP server's current tool list, security posture, or configuration, invoke `research` before auditing.\n","# MCP Context Audit\n\n## Why\n\nEvery MCP server injects **all its tool definitions** into the system prompt\nof every conversation. Two \"plug-and-play\" servers can consume a third of a\n200k window before the first user message. This is the fastest way to bloat\ncontext and trigger lost-in-the-middle. Audit before adding; keep only what\nearns its tokens.\n\nRule of thumb: **tool count per server under 10-15** keeps tool-selection\naccuracy above 90% (arXiv:2606.30317). Above that, the model picks the wrong\ntool more often than not.\n\n## When to Use\n\n- About to add an MCP server to `mcp_config.json`.\n- Context feels bloated and MCP tool definitions are suspected.\n- Periodic hygiene review of configured servers.\n- A server exposes many tools and you want to know the token cost.\n\n## When NOT to Use\n\n- No MCP servers configured - nothing to audit.\n- You already know the cost and have decided to keep the server.\n\n## Audit by tool\n\nMeasure the cost of each tool definition, not just the server total. If a server exposes many tools but the task uses only a few, prefer a narrower server or disable the unused tools if the server supports scoping.\n\n## Workflow\n\n### Step 1: List configured servers\n\n```\nexec: python3 \"{{APPDATA}}\u002Fdevin\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py\" --config mcp_config.json\n```\n\nReads `mcp_config.json` and reports each server's transport, command\u002Furl, and\na static bloat risk (based on config complexity). No tool calls made.\n\n### Step 2: Measure real tool counts\n\nThe script cannot call MCP tools itself. You (the agent) list tools per\nserver and feed the result to the script for token estimation:\n\n```\nmcp_list_tools server_name=\"atlassian\"\n```\n\nCapture the tool list, then pipe it to the estimator:\n\n```\nexec: python3 \"{{APPDATA}}\u002Fdevin\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py\" --tools - \u003C tools_atlassian.json\n```\n\nOr pass a file:\n\n```\nexec: python3 \"{{APPDATA}}\u002Fdevin\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py\" --tools tools_atlassian.json\n```\n\nThe script estimates token cost of the tool definitions (chars\u002F4 heuristic)\nand flags servers over the 10-15 tool threshold.\n\n### Step 3: Decide\n\n| Signal | Action |\n|---|---|\n| Server unused in N sessions | Remove from `mcp_config.json` |\n| Tool count > 15 | Prefer a narrower server, or scope tools if the server supports it |\n| Token cost > 5% of window | Justify with concrete usage; else remove |\n| Untrusted server | Review code\u002Fpermissions first; run in sandbox |\n\n### Step 4: Verify after removal\n\nRe-run Step 1 to confirm the server is gone and the budget dropped.\n\n## Anti-Patterns\n\n- **Adding servers \"just in case.\"** Permanent context tax for speculative use.\n- **Auditing once and never again.** Servers grow tools over time; re-audit.\n- **Trusting tool count alone.** A 5-tool server with huge descriptions can\n  cost more than a 15-tool server with terse ones. Check token cost.\n- **Skipping the trust review.** MCP servers run with user permissions;\n  evaluate the 5 architecture patterns \u002F 4 anti-patterns before adding.\n\n## Source\n\n- Tool-count accuracy threshold: arXiv:2606.30317 (\u003C10-15 tools\u002Fserver for\n  >90% selection accuracy).\n- MCP architecture patterns \u002F anti-patterns: trust checklist above.\n\n## Cross-skills\n\n- After auditing, invoke `mcp-lazy-enablement` to decide which servers to keep active or disable.\n- Context bloat from MCP: \"Context Windows Explained for Coding Agents\"\n  (Matt Pocock) - MCP servers can consume a third of the window before the\n  first message.\n\nIf the user asks about a specific MCP server's current tool list, security posture, or configuration, invoke `research` before auditing.\n",{"name":5,"triggers":24,"description":7},[25,26],"user","model","main","02b95ddb62959a00b3c31442c2046aca0d19563c","skills\u002Fmcp-context-audit",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill mcp-context-audit",{"tool":41,"command":42},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill mcp-context-audit",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill mcp-context-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-context-audit\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fmcp-context-audit.py","SCRIPT","脚本",9835,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-context-audit\u002Fscripts\u002Fmcp-context-audit.py",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":92,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]