/cloudbase-ai-toolkit:mcp-attribution-worktreefrom cloudbase-ai-toolkit
Triage, repair, and close MCP attribution issues from the local report API with evidence-driven decisions and isolated worktrees. Processes tool and skill attribution issues end-to-end.
Ships in cloudbase-ai-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.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.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?references/evaluation-verification.md (opens in a new tab)references/iteration-loop.md (opens in a new tab)references/report-api-workflow.md (opens in a new tab)references/subagent-orchestration.md (opens in a new tab)references/value-triage.md (opens in a new tab)references/worktree-repair.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/api-contract-reviewUse when auditing CloudBase cloud API wrappers, MCP tools, generated action metadata, or related docs for outdated or incorrect action names, parameters, casing, request shapes, or missing contract tests, especially during periodic quality review or before preparing corrective PRs./cloud-api-recipe-authoringAuthor or revise a cloud-api-operations recipe (config/source/skills/cloud-api-operations/references/recipes/). Encodes why the long tail of control-plane capabilities is deliberately NOT wrapped as MCP/CLI tools, the API-first admission test for whether a capability deserves a recipe, the negative and positive lists, the fixed recipe structure, the writing rules distilled from writing-for-agents, the user-facing copy red lines, and the product regeneration/verification pipeline. Also routes contributors (and their agents) to the contribution flow and the pre-PR self-test protocol in references/contributing.md. Use when adding a recipe, judging whether a scenario belongs in the recipe set, updating the recipes index, re-checking existing recipes against the admission test, or onboarding someone who wants to submit one./codebase-auditPerform a full codebase review, categorize findings by severity, file GitHub issues, then fix each issue in an isolated git worktree and submit PRs. Use this skill when the user asks to audit the codebase, do a comprehensive code review, find and fix security/quality/reliability issues, or run a proactive health check across the entire repository.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents.0: Invalid string: must end with ".md", agents.1: Invalid string: must end with ".md", agents.2: Invalid string: must end with ".md", agents.3: Invalid string: must end with ".md", agents.4: Invalid string: must end with ".md", agents.5: Invalid string: must end with ".md", agents.6: Invalid string: must end with ".md"
.claude-plugin/plugin.json: agents.0: Invalid string: must end with ".md", agents.1: Invalid string: must end with ".md", agents.2: Invalid string: must end with ".md", agents.3: Invalid string: must end with ".md", agents.4: Invalid string: must end with ".md", agents.5: Invalid string: must end with ".md", agents.6: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job