mcp-attribution-worktree
Skill1.1k starsChanged 4 months agoMITView on GitHub
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.
- Sends data out
- Commits and pushes
Trending
More talk lately.about the whole repository
Who's talking about TencentCloudBase/CloudBase-AI-Toolkit
- sudosubin/agents.nix“codex-plugins.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.8”GitHub · Oct 4, 2026
- sudosubin/agents.nix“codex-marketplaces.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.8”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-plugins.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.8”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.tencentcloudbase.cloudbase-ai-toolkit: 2.34.6 → 2.34.8”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.6”GitHub · Oct 3, 2026
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub (18 times).
On GitHub · 18
- Oct 4, 2026codex-plugins.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.8 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-marketplaces.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.8 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-plugins.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.8 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.tencentcloudbase.cloudbase-ai-toolkit: 2.34.6 → 2.34.8 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.tencentcloudbase.cloudbase-ai-toolkit: init at 2.34.6 — sudosubin/agents.nix0 reactions
13 more on GitHub
- Sep 15, 2026[Resource]: Tencent CloudBase — hesreallyhim/awesome-claude-code0 reactions · 1 comment
- Sep 15, 2026Add CloudBase AI Toolkit to Kimi Plugins — hashgraph-online/awesome-ai-plugins0 reactions · 3 comments
- Sep 15, 2026Add TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin — CloudBase backend, MCP tools and deploy preview — awesome-dsh-plugin/awesome-dsh-plugin0 reactions
- Sep 14, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Sep 5, 2026Audit: add CloudBase AI Toolkit and Narrator AI CLI Skill — sandbaseai/awesome-workbuddy0 reactions
- Aug 24, 2026Add CloudBase AI Toolkit (MCP server + Skills for Tencent CloudBase) — hashgraph-online/awesome-ai-plugins0 reactions · 5 comments
- Aug 19, 2026Add Tencent CloudBase — Tommertom/opencode-plugin-marketplace0 reactions
- Aug 18, 2026Claim Tencent CloudBase listing: replace unofficial mirror with official registry identity — pulsemcp/mcp-servers0 reactions
- Aug 17, 2026docs: add CloudBase (Tencent CloudBase AI Toolkit) to Integrations — composio-community/awesome-claude-plugins0 reactions
- Dec 22, 2025Add CloudBase AI ToolKit MCP server — punkpeye/awesome-mcp-servers0 reactions · 2 comments
- Dec 8, 2025chore(deps): bump @modelcontextprotocol/sdk and @cloudbase/cloudbase-mcp — mayphus/omni0 reactions
- Jul 8, 2025Add CloudBase AI ToolKit to Official Integrations — modelcontextprotocol/servers0 reactions · 1 comment
- Jun 26, 2025[Server Submission]: CloudBase AI ToolKit — cline/mcp-marketplace0 reactions
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dsh-plugin/AGENTS.mdAGENTS.md
- evals/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- dsh-plugin/CLAUDE.mdCLAUDE.md
- evals/CLAUDE.mdCLAUDE.md
- .cursor/rules/project.mdcCursor rule
- api-contract-reviewSkill
- cloud-api-recipe-authoringSkill
- codebase-auditSkill
- codebuddy-ide-mcp-upgradeSkill
- doc-freshness-reviewSkill
- docs-workflowsSkill
- git-workflowsSkill
- manage-local-skillsSkill
- planning-workflowsSkill
- pr-review-fixSkill
- review-automation-orchestratorSkill
- skill-authoringSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
55 rules. About 0 are common, 29 are distinctive, and 26 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈29
Distinctive · estimate
This author's own choices. Worth a look.
26
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill to:
- Very specific: line 17
update attribution issues with concise evidence, owner=codex, and links to external GitHub work
- Distinctive: line 21
run a real post-PR evaluation when an evaluation interface is available, and use that result to decide whether another repair loop is needed
- Very specific: line 32
Start with focused tool and skill backlog queries.
- Very specific: line 35
Read at least one run's result and trace.
- Very specific: line 36
Check the relevant implementation in mcp/src or config/source/skills before deciding whether the issue is actionable.
- Distinctive: line 37
When the failure is caused by model misunderstanding, prefer repairs that translate repo-specific behavior into concepts the model already …
- Distinctive: line 38
If the issue is actionable in repo code or skills content, do not stop at attribution triage.
- Distinctive: line 39
If review comments, review decisions, or later evidence show the direction is wrong, start another focused iteration from the existing …
- Distinctive: line 40
Update attribution fields through the report API after you have the right evidence, and update them again when the GitHub issue, PR, or …
- Very specific: line 41
Before changing an attribution to resolved, run a closure preflight on the linked GitHub artifact again: reread the latest PR comments, …
- Distinctive: line 42
When a real evaluation interface exists, run a post-PR evaluation and use the result plus the closure preflight to decide whether to …
- Distinctive: line 43
Only stop after the issue is either clearly non-actionable or has been carried through the repair loop as far as the current environment …
- Distinctive: line 67
When attribution evidence shows the model is failing because a tool or skill exposes repo-specific semantics in an unfamiliar way, prefer …
- Distinctive: line 70
Keep model-facing guidance short and high-signal.
- Distinctive: line 72
Prefer changing the tool description, parameter description, skill wording, or generated docs when that is enough to correct the model's …
- Distinctive: line 73
Do not assume the model will infer hidden semantics from traces, backend behavior, or evaluator expectations.
- Distinctive: line 77
Only update attribution issues through the local report API.
- Very specific: line 78
Treat owner as fixed: always set it to codex when you patch an attribution.
- Very specific: line 79
Before any new iteration, always inspect the latest attribution notes, externalUrl, linked GitHub issue or PR status, and any available PR …
- Very specific: line 80
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 …
- Very specific: line 81
Do not change resolutionStatus until you have read at least one related run's result and trace.
- Very specific: line 82
Do not mark an issue resolved without clear closure evidence such as an existing GitHub issue, PR, merged fix, or a verified duplicate that …
- Very specific: line 83
Do not mark an issue resolved if there are unread or unaddressed PR comments, review comments, review decisions, or issue comments that …
- Very specific: line 84
Keep notes short but auditable.
- Very specific: line 85
If the evidence is incomplete, keep the issue todo or move it to in_progress and explicitly state what is still missing.
- Distinctive: line 87
When the likely root cause is model misunderstanding rather than backend behavior, first try to repair the model-facing contract: clearer …
- Very specific: line 88
When the fix belongs to CloudBase skill content, edit config/source/skills/ as the source of truth.
- Distinctive: line 89
Only stop at status-only attribution updates when the issue is non-actionable, blocked by missing evidence, blocked by missing Worktrunk, …
- Distinctive: line 90
Do not use broad uncategorized backlog queries as the default source of work.
- Distinctive: line 92
Prefer one sub-agent per issue when sub-agent support exists.
- Very specific: line 93
If a repair is needed, use Worktrunk's wt workflow for the isolated worktree.
- Distinctive: line 94
Never reuse the same worktree for multiple attribution issues.
- Distinctive: line 95
Do not open or update GitHub issues until you have enough run evidence to explain the problem clearly.
- Distinctive: line 96
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 …
- Very specific: line 98
If a real evaluation interface is available, prefer leaving the attribution in_progress until the repaired branch or PR passes a fresh …
- Distinctive: line 99
Do not claim validation success from reasoning alone.
- Distinctive: line 103
Before starting a fresh diagnosis or code iteration for an attribution issue, complete this checklist in order:
- Very specific: line 105
Read the attribution detail plus the latest notes.
- Very specific: line 106
Read externalUrl if present.
- Very specific: line 107
If externalUrl points to a GitHub issue, check whether it is open or closed and whether later comments changed the fix direction.
- Very specific: line 108
If externalUrl points to a PR, check whether it is open, merged, closed, or superseded.
- Distinctive: line 109
Read PR comments, review comments, and review decisions before deciding whether to continue the same branch or start a new iteration.
- Very specific: line 110
Only after that, pick the representative run and continue into result, trace, and evaluation-trace.
- Very specific: line 114
Before changing an attribution to resolved, complete this checklist in order even if you already did the normal preflight earlier:
- Very specific: line 119
If new feedback exists, keep the attribution in_progress and continue the loop.
- Distinctive: line 120
Only if there is no newer unresolved feedback, evaluate whether closure evidence is now strong enough.
- Distinctive: line 144
If the issue was actionable, did I continue into GitHub issue / worktree / PR work instead of stopping at triage?
- Distinctive: line 145
If there was already a PR or review thread, did I continue from that feedback instead of ignoring it?
- Distinctive: line 146
If a real evaluation interface was available, did I run a fresh evaluation before treating the issue as closed?
- Very specific: line 148
If I patched the attribution, did I keep the change limited to resolutionStatus, owner, notes, and externalUrl when relevant?
- Distinctive: line 149
If I started a fix, does it live in its own Worktrunk worktree and branch?
- Distinctive: line 150
If the issue was caused by model misunderstanding, did I reduce model-facing complexity by mapping repo-specific behavior to familiar …
- Very specific: line 151
If I marked something resolved, is there explicit closure evidence?
- Very specific: line 152
If I marked something resolved, did I re-read the latest PR comments, review comments, review decisions, and issue comments immediately …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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>/<runId>/result"
curl -s "http://127.0.0.1:5174/api/runs/<caseId>/<runId>/trace"
curl -s "http://127.0.0.1:5174/api/runs/<caseId>/<runId>/evaluation-trace"
wt switch --create feature/attribution-<slug>
gh issue create --repo TencentCloudBase/CloudBase-MCP
gh pr view <number> --comments --repo TencentCloudBase/CloudBase-MCP
gh pr create --repo TencentCloudBase/CloudBase-MCP
curl -s -X POST http://127.0.0.1:5174/api/evaluationsMinimum self-check
- Did I complete the existing-artifact preflight before starting a new diagnosis or code iteration?
- Did I inspect at least one related run's
resultandtracebefore changing status? - Did I keep this issue isolated from every other issue?
- Is the issue actually actionable in
mcp/src,config/source/skills, or is it environment / grader noise? - If the issue was actionable, did I continue into GitHub issue / worktree / PR work instead of stopping at triage?
- If there was already a PR or review thread, did I continue from that feedback instead of ignoring it?
- If a real evaluation interface was available, did I run a fresh evaluation before treating the issue as closed?
- Did I base the validation conclusion on the final evaluation result instead of my own guess?
- If I patched the attribution, did I keep the change limited to
resolutionStatus,owner,notes, andexternalUrlwhen relevant? - If I started a fix, does it live in its own Worktrunk worktree and branch?
- If the issue was caused by model misunderstanding, did I reduce model-facing complexity by mapping repo-specific behavior to familiar concepts and by explicitly naming dangerous defaults?
- If I marked something
resolved, is there explicit closure evidence? - If I marked something
resolved, did I re-read the latest PR comments, review comments, review decisions, and issue comments immediately before closing it?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

