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.
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill mcp-attribution-worktree
Process MCP and skills-related attribution issues as an auditable maintenance workflow instead of ad-hoc debugging.
Use this skill to:
mcp/src tools, config/source/skills, or classify them as environment / grader / duplicate noiseowner=codex, and links to external GitHub workmcp/src or config/source/skillstool and skill backlog queries.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.result and trace. Prefer to also read evaluation-trace.mcp/src or config/source/skills before deciding whether the issue is actionable.10. 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.
11. 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.
12. 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.
mcp/src bug or just evaluation noise."| 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 |
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.
updateOne or updateMany, HTTP methods, SQL CRUD verbs, filesystem path conventions, or common SDK idioms.owner as fixed: always set it to codex when you patch an attribution.notes, externalUrl, linked GitHub issue or PR status, and any available PR comments or review decisions.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.resolutionStatus until you have read at least one related run's result and trace.resolved without clear closure evidence such as an existing GitHub issue, PR, merged fix, or a verified duplicate that already has external tracking.resolved if 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.notes short but auditable. Include the representative run, the main failing signal, and the code or tool signal that supports the conclusion.todo or move it to in_progress and explicitly state what is still missing.mcp/src or config/source/skills, the default expectation is full follow-through: attribution triage, GitHub issue linkage, isolated worktree repair, validation, and PR creation.config/source/skills/ as the source of truth. Do not treat the root skills/ directory as the source for those external skills.mcp/src or config/source/skills.wt workflow for the isolated worktree. If wt is unavailable, stop and report that Worktrunk is missing instead of silently falling back to a shared checkout.in_progress until the repaired branch or PR passes a fresh evaluation round.Before starting a fresh diagnosis or code iteration for an attribution issue, complete this checklist in order:
notes.externalUrl if present.externalUrl points to a GitHub issue, check whether it is open or closed and whether later comments changed the fix direction.externalUrl points to a PR, check whether it is open, merged, closed, or superseded.result, trace, and evaluation-trace.Before changing an attribution to resolved, complete this checklist in order even if you already did the normal preflight earlier:
in_progress and continue the loop.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/evaluations
result and trace before changing status?mcp/src, config/source/skills, or is it environment / grader noise?resolutionStatus, owner, notes, and externalUrl when relevant?resolved, is there explicit closure evidence?resolved, did I re-read the latest PR comments, review comments, review decisions, and issue comments immediately before closing it?Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take tencentcloudbase/mcp-attribution-worktree from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.