/cct-helpers:contribute-upstreamfrom cct-helpers
Pushes locally modified template files from a claude-code-toolkit project back to the upstream template, with user-guided classification, placeholder reversal, and cross-variant propagation.
Ships in cct-helpers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Push improvements from the current project back to the claude-code-toolkit template.
Requires: template-sync-tools MCP server registered and running.
Call template_load_manifest(project_path=".", skill_version="not-a-skill") (this is not the sync-template skill, so it passes the bypass sentinel). If errors, stop.
Call template_compute_status(project_path=".").
Collect files where locally_modified is true. Skip PROJECT_CONTEXT.md (always project-specific).
If no candidates: "No locally modified template files. Nothing to contribute."
Present the list:
Locally modified template files:
1. .claude/agents/architect.md
2. CLAUDE.md
3. .claude/agents/code-reviewer.md
For each candidate file:
template_get_diff(project_path=".", file_path=F, diff_type="local_changes")Do NOT auto-classify. Always confirm with the user.
For each file confirmed as generalizable:
template_reverse_placeholders(project_path=".", file_path=F)replacements_made list so the user can verify placeholders were restored correctlyreversed_content (or a relevant excerpt) for confirmationFor each confirmed file:
template_check_cross_variant(template_repo=..., variant=..., file_path=F)can_propagate is true (all variants have identical content): offer to propagate to all variantscan_propagate is false (variants differ): only update the current variant and warn:
"
{file}differs across variants. Only updating{variant}. Check other variants manually."
For files being propagated to all variants:
Call template_propagate_to_variants(template_repo=..., file_path=F, content=<reversed_content>, target_variants=<JSON array>).
For files only updating current variant:
Call template_propagate_to_variants(template_repo=..., file_path=F, content=<reversed_content>, target_variants=["<current_variant>"]).
For each contributed file:
Call template_apply_file(project_path=".", file_path=F, source="skip") to update the manifest entry (marks the file as back in sync with template).
Write the JSON array of all template_apply_file results to a scratchpad file with the Write tool, then call template_finalize_sync(project_path=".", applied_files_path=<json-path>), where <json-path> is that file.
Contribution Report
Contributed to template ({variant}):
- .claude/agents/code-reviewer.md (propagated to: all variants)
- CLAUDE.md (updated: {variant} only)
Skipped (project-specific):
- .claude/agents/architect.md
Changes written to {effective location}. Review and commit when ready.
{effective location} is the template_repo_note from the template_propagate_to_variants response when present (under the v4.5.1 fallback the writes went into the server's own checkout, not the declared templateRepo), otherwise templateRepo.
PROJECT_CONTEXT.md in the template (always project-specific)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dagonet/claude-code-toolkit --plugin cct-helpers4 skills in this plugin
/commitStage and commit changes with native git, after showing the user exactly what will be committed. Triggers on /cct-helpers:commit./karpathy-guidelinesBehavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code./mcp-usageOccasional MCP procedures — use when digesting a large input, extracting structured data, mapping an unfamiliar repo, looking up a library API, or running a headless batch.