brain-approve
Approve, reject, or manage pending brain memories. Use: /brain-approve [all|<id>]
Export accumulated brain knowledge as `CONVENTIONS.md` and open a GitHub PR so your whole team can review what the AI team learned.
$ npx -y skills add Gr122lyBr/claude-teams-brain --skill brain-github-export --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/brain-github-exportContext preview
The summary Claude sees to decide when to auto-load this skill.
Export accumulated brain knowledge as `CONVENTIONS.md` and open a GitHub PR so your whole team can review what the AI team learned.
Export accumulated brain knowledge as `CONVENTIONS.md` and open a GitHub PR so your whole team can review what the AI team learned.
This skill activates when the user runs `/brain-github-export` or `/claude-teams-brain:brain-github-export`.
Run the following command and capture the JSON output:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/brain_engine.py" export-conventions "${CLAUDE_PROJECT_DIR}"Parse the JSON response:
Write the `content` field to `${CLAUDE_PROJECT_DIR}/CONVENTIONS.md`.
If the content is empty or there is no brain data yet, tell the user: > "No brain data found for this project. Run some Agent Team sessions first to build memory, then try again."
gh auth status
If `gh` is not installed or not authenticated, tell the user: > "GitHub CLI (`gh`) is required. Install it from https://cli.github.com and run `gh auth login`, then retry."
Stop here if gh is not available.
Verify this is a git repo:
git -C "${CLAUDE_PROJECT_DIR}" rev-parse --git-dirIf not a git repo, tell the user and stop.
cd "${CLAUDE_PROJECT_DIR}"
git diff --quiet CONVENTIONS.md 2>/dev/null || echo "changed"
git ls-files --others --exclude-standard CONVENTIONS.md 2>/dev/nullIf CONVENTIONS.md has no changes and is not a new file, tell the user: > "CONVENTIONS.md is already up to date. No PR needed."
cd "${CLAUDE_PROJECT_DIR}"
BRANCH="brain/conventions-$(date +%Y%m%d-%H%M)"
git checkout -b "$BRANCH"
git add CONVENTIONS.md
git commit -m "docs: update CONVENTIONS.md from claude-teams-brain session"
git push -u origin HEADThen open a PR:
gh pr create \ --title "🧠 AI Team Conventions Update" \ --body "$(cat <<'EOF' ## AI Team Conventions Update This PR was automatically generated by [claude-teams-brain](https://github.com/Gr122lyBr/claude-teams-brain) from accumulated Agent Team session memory. ### What's in this PR This file captures everything your AI team has learned about this codebase: - Project rules & conventions (set via `/brain-remember`) - Architectural decisions made by Agent Team teammates - Key files and which agents have worked on them ### Why review this? Merging `CONVENTIONS.md` makes your AI team's institutional knowledge visible to the whole human team. It also seeds future AI sessions with verified, human-reviewed conventions. ### What to do 1. Review the conventions — remove anything outdated or incorrect 2. Merge to share with your team 3. The brain will keep updating this as your AI team learns more --- _Generated by [claude-teams-brain](https://github.com/Gr122lyBr/claude-teams-brain) — persistent memory for Claude Code Agent Teams_ EOF )"
Parse the output of `gh pr create` to get the PR URL and show it to the user: > "✅ PR opened: https://github.com/your-org/your-repo/pull/123"
Also mention: > "💡 You can automate this with the GitHub Actions template at `${CLAUDE_PLUGIN_ROOT}/profiles/github-actions-conventions.yml` — copy it to `.github/workflows/` in your repo."
Give your Claude Code Agent Teams a memory. Auto-injects role-specific context into every new teammate — your team never starts blind again.
Repo: Gr122lyBr/claude-teams-brain
Approve, reject, or manage pending brain memories. Use: /brain-approve [all|<id>]
Launch the brain dashboard web UI to visualize and curate memories, decisions, and files. Trigger: /brain-dashboard
Export accumulated brain knowledge as a CONVENTIONS.md file in your project. Distills all rules, decisions, files, and agent roles into a committable file.
Remove a manually stored memory from the brain by partial text match. Use: /brain-forget <text>
Auto-learn project conventions from git history — zero manual setup. Trigger: /brain-learn