Agent skill
meta-contribute-back
Package universal skill learnings from a project and contribute them back to the agentic-workflow source repo via a git branch. Creates a contrib/ branch with the adaptation details for review. Use when the user says "contribute back", "push learnings", "send adaptations upstream", or after /meta-continuous-learning flags pending contributions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/meta-contribute-back
SKILL.md
Contribute Back — Push Learnings to Source
Package universal and stack-specific skill adaptations from this project and stage them in the agentic-workflow repo as a contribution branch for review.
Prerequisites
workflow.jsonmust exist withworkflowReposetcontext/adaptations.mdmust exist with at least onepending-contributionentry- The agentic-workflow repo must be accessible locally
Step 1: Read Adaptations
- Read
context/adaptations.md - Filter entries by status:
- If a skill name is given: show only that skill's adaptations
- If
--all: show allpending-contributionentries - If
--list: show a summary table and stop (read-only)
- If no
pending-contributionentries found, report and exit
Step 2: Prepare Contributions
- For each
pending-contributionadaptation: a. Read the local skill's SKILL.md (the modified version) b. Resolve the agentic-workflow repo path viaworkflow.json→workflowRepoandpwsh .claude/skills/tool-worktree/scripts/resolve-repo.ps1 <workflowRepo>c. Read the source skill's SKILL.md from agentic-workflow d. Identify the differences (the adaptation) e. Generate a contribution file
Contribution File Format
# Contribution: {short description}
- **Skill:** {skill-name}
- **From project:** {project name from workflow.json}
- **Date:** {YYYY-MM-DD}
- **Classification:** {universal | stack-specific}
- **Installed version:** {version from local catalog}
## What changed
{Description of the adaptation — what was added, modified, or restructured}
## Proposed changes
{The actual content to add or modify in the source SKILL.md.
Not a git diff — readable sections that a reviewer can understand and apply.}
## Context
{Why this came up, what problem it solved, any edge cases discovered.
Include enough context that someone reviewing in agentic-workflow understands
the motivation without needing to see the project.}
Step 3: Create Contribution Branch
- Switch to the agentic-workflow repo directory
- Determine the branch name:
contrib/{project-name}/{skill-name}- Sanitize project name: lowercase, replace spaces/dots with hyphens
- Example:
contrib/my-project/dev-tdd-backend
- Check if the branch already exists:
- If yes: switch to it and rebase on main
- If no: create it from main
- Create the
contributions/directory if it doesn't exist - Create
contributions/{skill-name}/directory
Step 4: Commit Contributions
- Write the contribution file:
contributions/{skill-name}/{date}-{slug}.md- Slug: lowercase, hyphens, from the short description
- Example:
contributions/dev-tdd-backend/2026-03-18-aspire-integration-tests.md
- Stage and commit:
- Message:
contrib: {skill-name} from {project-name} — {short description}
- Message:
- Switch back to main branch in agentic-workflow (leave the contrib branch for review)
Step 5: Update Source Project
- Back in the source project, update
context/adaptations.md:- Change status from
pending-contributiontocontributed - Add note:
Contributed on {date} to branch contrib/{project}/{skill}
- Change status from
- Log to today's daily memory:
- What was contributed
- Branch name in agentic-workflow
- Suggested next step
Step 6: Report
- Show summary:
### Contributions Staged
| Skill | Description | Branch |
|-------|-------------|--------|
| dev-tdd-backend | Aspire integration tests | contrib/my-project/dev-tdd-backend |
Next steps:
1. In agentic-workflow, review with: git log main..contrib/my-project/dev-tdd-backend
2. Merge with: /meta-merge-contributions --skill dev-tdd-backend
Flags
| Flag | Behavior |
|---|---|
--all |
Contribute all pending adaptations |
--list |
Show pending adaptations without contributing (read-only) |
| (skill-name) | Contribute adaptations for a specific skill only |
Safety Rules
- Never force-push to the agentic-workflow repo
- Never commit directly to main in agentic-workflow — always use contrib/ branches
- Never modify source skills — only write to contributions/ directory
- Always confirm with user before creating branches in another repo
- Clean up — switch agentic-workflow back to main after creating the branch
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?