From self-learning
Pushes local org-patterns to shared organization repository, converting TOON to JSON, resolving ID collisions, merging, and tracking sources.
How this command is triggered — by the user, by Claude, or both
Slash command
/self-learning:push-learningsFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Push Learnings Command Exports local organization patterns to a shared repository for team-wide distribution. ## Prerequisites - `CLAUDE_ORG_ID` environment variable must be set - Git repository must be initialized - Network access to remote repository ## Process 1. **Read local patterns**: Load `$CLOSEDLOOP_WORKDIR/.learnings/org-patterns.toon` 2. **Convert TOON → JSON**: For cross-project compatibility 3. **Regenerate pattern IDs**: Resolve collisions (P-001 might exist in target) 4. **Merge with shared patterns**: Read `$CLOSEDLOOP_WORKDIR/.claude/learnings/org-patterns.json` 5. *...
Exports local organization patterns to a shared repository for team-wide distribution.
CLAUDE_ORG_ID environment variable must be set$CLOSEDLOOP_WORKDIR/.learnings/org-patterns.toon$CLOSEDLOOP_WORKDIR/.claude/learnings/org-patterns.jsonsources.json with origin metadataWhen merging patterns from multiple projects:
sources.json format:
{
"patterns": {
"P-001": {
"source_project": "project-name",
"source_id": "P-042",
"pushed_at": "ISO8601",
"pushed_by": "[email protected]"
}
}
}
# TOON
P-001|org|pattern|auth_flow|high|5|0.85||impl-subagent,"Check token expiry"
# JSON
{
"id": "P-001",
"scope": "org",
"category": "pattern",
"trigger": "auth_flow",
"confidence": "high",
"seen_count": 5,
"success_rate": 0.85,
"flags": "",
"applies_to": ["impl-subagent"],
"summary": "Check token expiry"
}
# Requires CLAUDE_ORG_ID to be set
export CLAUDE_ORG_ID="my-organization"
# Then invoke via ClosedLoop orchestrator
CLAUDE_ORG_ID not set, exit with errornpx claudepluginhub closedloop-ai/claude-plugins --plugin self-learning/kasi-promotePromotes patterns, checklists, knowledge, rules, or missions from local .kasidit/ (dcenterlite) to global Centerlite hub with user confirmation, conflict checks, and versioning.
/exportcommandsExports Claude commands, skills, hooks, and agents to a public reference repository with pre-flight content leakage and scope checks. Supports --dry-run for preview.
/coreInitializes, captures knowledge, and transfers context across projects using a .living/ directory framework. Also supports analysis, reporting, brainstorming, and review subcommands.
/skill-createAnalyzes local git history to extract coding patterns and conventions, then generates a SKILL.md file. Also supports creating instincts for continuous-learning-v2.
/learnAnalyzes git history, PRs, and handoffs for repeated patterns, recommends artifacts like skills/rules/hooks/agents, and creates them upon user approval.
/contribute-kbPackages user's local learnings from knowledge/local/ and creates a GitHub PR to contribute them to a community knowledge base. Sanitizes sensitive data before uploading.