mcp-attribution-worktree
Triage, repair, and close MCP attribution issues from the local report API with evidence-driven decisions and isolated Worktrunk worktrees.
Install / Use
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill mcp-attribution-worktreeInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of mcp-attribution-worktree
mcp-attribution-worktree scores 89/100 on our quality scale, 1453rd of 4,646 Development & Engineering skills we index (top 32%).
Its SKILL.md is 14 KB long, well organised into 12 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 1,124 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 9 days ago, so mcp-attribution-worktree is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
mcp-attribution-worktree compared with similar skills
All 4 of these similar skills score higher than mcp-attribution-worktree; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-attribution-worktree (this skill)by TencentCloudBase | 89 | 1.1k | 9d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 89.8k | 18d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.4k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
| ai-job-searchby MadsLorentzen | 100 | 44.9k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-attribution-worktree?
- Run
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill mcp-attribution-worktree. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-attribution-worktree work with?
- It is written for OpenAI Codex, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is mcp-attribution-worktree safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-attribution-worktree still maintained?
- The repository was last updated 9 days ago, so mcp-attribution-worktree is actively maintained.
Skill content
View source on GitHubname: mcp-attribution-worktree
description: Triage, repair, and close MCP attribution issues from the local report API with evidence-driven decisions and isolated Worktrunk worktrees. Use this skill when Codex needs to process tool attribution issues and skills-related attribution issues, inspect related runs, decide whether the issue is actionable in mcp/src or config/source/skills, update attribution fields as owner=codex, and then complete the fix loop through GitHub issue tracking, worktree-based code changes, PR submission, and follow-up iteration when the problem is repairable.
MCP Attribution Worktree
Process MCP and skills-related attribution issues as an auditable maintenance workflow instead of ad-hoc debugging.
What this skill does
Use this skill to:
- fetch pending MCP and skills-related attribution issues from the local report API
- inspect issue detail plus representative runs before making any status decision
- map failures back to concrete
mcp/srctools,config/source/skills, or classify them as environment / grader / duplicate noise - update attribution issues with concise evidence,
owner=codex, and links to external GitHub work - isolate each actionable repair in its own Worktrunk worktree and branch
- carry actionable issues through repo repair and PR creation instead of stopping at issue state updates
- continue from existing GitHub issues or PRs when later review or evaluation feedback shows the first direction was incomplete or wrong
- run a real post-PR evaluation when an evaluation interface is available, and use that result to decide whether another repair loop is needed
Do not use this skill for
- generic bug fixing without attribution evidence
- unrelated attribution categories that do not map to
mcp/srcorconfig/source/skills - bulk repo changes unrelated to a specific attribution issue
- direct database or backend mutation outside the documented report API endpoints
Workflow
- Start with focused
toolandskillbacklog queries. - Process one issue at a time. Never mix evidence, notes, or worktrees across issues.
- Run the existing-artifact preflight before choosing the representative run: read issue detail, current notes, existing
externalUrl, and the state of any linked GitHub issue or PR. If a GitHub issue or PR already exists, treat it as part of the current state, not a finished endpoint. - Read at least one run's
resultandtrace. Prefer to also readevaluation-trace. - Check the relevant implementation in
mcp/srcorconfig/source/skillsbefore deciding whether the issue is actionable. - When the failure is caused by model misunderstanding, prefer repairs that translate repo-specific behavior into concepts the model already knows well. Reuse familiar abstractions, canonical API names, and one safe example instead of adding long product-specific explanations.
- If the issue is actionable in repo code or skills content, do not stop at attribution triage. Open or link the matching GitHub issue, create a dedicated Worktrunk worktree, implement the fix, validate it, and prepare a PR.
- If review comments, review decisions, or later evidence show the direction is wrong, start another focused iteration from the existing GitHub issue or PR context and continue improving instead of treating the first PR as final.
- Update attribution fields through the report API after you have the right evidence, and update them again when the GitHub issue, PR, or evaluation result becomes available.
- Before changing an attribution to
resolved, run a closure preflight on the linked GitHub artifact again: reread the latest PR comments, review comments, review decisions, and issue comments after the most recent code push or evaluation result. - When a real evaluation interface exists, run a post-PR evaluation and use the result plus the closure preflight to decide whether to continue iterating or mark the issue closed.
- Only stop after the issue is either clearly non-actionable or has been carried through the repair loop as far as the current environment allows.
Common requests
- "Automatically process the pending MCP attribution issues."
- "Look at the tool and skills attribution backlog, fix the real issues, and update attribution with evidence."
- "Find valuable MCP attribution problems and fix them in isolated worktrees."
- "For each tool issue, decide whether it is a real
mcp/srcbug or just evaluation noise." - "Continue iterating on the existing issue or PR after review comments."
- "After opening the PR, run a real evaluation and fix the next round if it still fails."
Routing
| Task | Read |
| --- | --- |
| Run the report API triage flow and update attribution fields across tool and skills-related issues | references/report-api-workflow.md |
| Decide whether an issue is valuable and map it to mcp/src or config/source/skills | references/value-triage.md |
| Create GitHub issues, use Worktrunk, and repair the repo in isolation | references/worktree-repair.md |
| Continue from review feedback or real evaluation results after a PR already exists | references/iteration-loop.md |
| Trigger real evaluation runs and interpret the result | references/evaluation-verification.md |
| Dispatch one issue per worker and enforce closure-sweep rules in sub-agent prompts | references/subagent-orchestration.md |
Model-oriented repair heuristic
When attribution evidence shows the model is failing because a tool or skill exposes repo-specific semantics in an unfamiliar way, prefer repairs that reduce translation work for the model.
- Map the behavior to concepts the model already knows well, such as MongoDB
updateOneorupdateMany, HTTP methods, SQL CRUD verbs, filesystem path conventions, or common SDK idioms. - Keep model-facing guidance short and high-signal. One canonical safe example is usually better than a long product-specific explanation.
- Explicitly name dangerous defaults or footguns when they are easy for the model to miss, such as replacement vs partial update, destructive writes, ambiguous path resolution, or auth-sensitive side effects.
- Prefer changing the tool description, parameter description, skill wording, or generated docs when that is enough to correct the model's mental model. Do not jump to implementation changes if the real gap is contract clarity.
- Do not assume the model will infer hidden semantics from traces, backend behavior, or evaluator expectations. If a safe rule matters, state it directly where the model sees it.
Operating rules
- Only update attribution issues through the local report API.
- Treat
owneras fixed: always set it tocodexwhen you patch an attribution. - Before any new iteration, always inspect the latest attribution
notes,externalUrl, linked GitHub issue or PR status, and any available PR comments or review decisions. - Before moving any issue to
resolved, always perform a fresh closure sweep on the linked issue or PR after the latest push or evaluation has completed. Do not rely on an earlier preflight. - Do not change
resolutionStatusuntil you have read at least one related run'sresultandtrace. - Do not mark an issue
resolvedwithout clear closure evidence such as an existing GitHub issue, PR, merged fix, or a verified duplicate that already has external tracking. - Do not mark an issue
resolvedif there are unread or unaddressed PR comments, review comments, review decisions, or issue comments that arrived after the last time you inspected the linked artifact. - Keep
notesshort but auditable. Include the representative run, the main failing signal, and the code or tool signal that supports the conclusion. - If the evidence is incomplete, keep the issue
todoor move it toin_progressand explicitly state what is still missing. - For a real and repairable issue in
mcp/srcorconfig/source/skills, the default expectation is full follow-through: attribution triage, GitHub issue linkage, isolated worktree repair, validation, and PR creation. - When the likely root cause is model misunderstanding rather than backend behavior, first try to repair the model-facing contract: clearer tool descriptions, safer parameter wording, skill guidance, canonical examples, and explicit warning about dangerous defaults.
- When the fix belongs to CloudBase skill content, edit
config/source/skills/as the source of truth. Do not treat the rootskills/directory as the source for those external skills. - Only stop at status-only attribution updates when the issue is non-actionable, blocked by missing evidence, blocked by missing Worktrunk, or clearly outside MCP repo control.
- Do not use broad uncategorized backlog queries as the default source of work. Only use them in explicit fallback mode when category labels are incomplete or the user asks for a full backlog sweep.
- Items discovered through fallback broad queries must not enter the repair queue until run evidence clearly shows they belong to
mcp/srcorconfig/source/skills. - Prefer one sub-agent per issue when sub-agent support exists. Give each sub-agent ownership of exactly one issue. If sub-agents are unavailable, process issues serially and keep a strict one-issue-at-a-time context.
- If a repair is needed, use Worktrunk's
wtworkflow for the isolated worktree. Ifwtis unavailable, stop and report that Worktrunk is missing instead of silently falling back to a shared checkout. - Never reuse the same worktree for multiple attribution issues.
- Do not open or update GitHub issues until you have enough run evidence to explain the problem clearly.
- If an issue already has a GitHub issue or PR, read its current state before starting a new branch or changing direction: open or closed status, latest comments, review decisions, and whether the linked work is already stale or superseded.
- Review comments and post-PR evaluation failures are part of the same repair loop. Use them to drive another iteration instead of prematurely closing the attribution.
- If a real evaluation interface is available, prefer leaving the attribution
in_progressuntil the repaired branch or PR passes a fresh evaluation round. - Do not claim validation success from reasoning alone. Use the evaluation API and the final run result whenever that interface is available.
Required preflight
Before starting a fresh diagnosis or code iteration for an attribution issue, complete this checklist in order:
- Read the attribution detail plus the latest
notes. - Read
externalUrlif present. - If
externalUrlpoints to a GitHub issue, check whether it is open or closed and whether later comments changed the fix direction. - If
externalUrlpoints to a PR, check whether it is open, merged, closed, or superseded. - Read PR comments, review comments, and review decisions before deciding whether to continue the same branch or start a new iteration.
- Only after that, pick the representative run and continue into
result,trace, andevaluation-trace.
Required closure preflight
Before changing an attribution to resolved, complete this checklist in order even if you already did the normal preflight earlier:
- Reopen the linked GitHub issue or PR.
- Re-read the latest top-level comments, review comments, and review decisions.
- Confirm whether any comment arrived after the latest code push, PR update, or evaluation result.
- If new feedback exists, keep the attribution
in_progressand continue the loop. - Only if there is no newer unresolved feedback, evaluate whether closure evidence is now strong enough.
Quick commands
curl -s 'http://127.0.0.1:5174/api/attributions?category=tool&resolutionStatus=todo&limit=50'
curl -s 'http://127.0.0.1:5174/api/attributions?category=skill&resolutionStatus=todo&limit=50'
curl -s "http://127.0.0.1:5174/api/attributions/<issueId>"
curl -s "http://127.0.0.1:5174/api/runs/<caseId>/
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
89.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
ai-job-search
44.9kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
