Skip to content

Add ai-extension-manager skill: cross-agent skill/rules/MCP sync with conflict safety 🤖🤖🤖 - #6610

Open
Jack91124 wants to merge 1 commit into
github:mainfrom
Jack91124:add-ai-extension-manager-skill
Open

Jack91124 wants to merge 1 commit into
github:mainfrom
Jack91124:add-ai-extension-manager-skill

Conversation

@Jack91124

Copy link
Copy Markdown

Adds an Agent Skill for AI Extension Manager - a local-first CLI that manages and bidirectionally syncs skills, plugins, MCP configs and rules across Claude Code, Codex, Gemini CLI, Cursor, VS Code Copilot and DSH.

  • SHA-256 three-way state (A/B/C/D/E) with conflicts exit 2 instead of silent overwrite
  • Per-target backups, version snapshots, restore
  • Security: secret redaction, mirror-rewrite detection, confirmation gates
  • CLI install: pip install ai-extension-manager (v1.0.19)
  • Docs: https://jack91124.github.io/ai-extension-manager/

README table row added via the same format as .github/scripts/catalog/update-readme.mjs.

@Jack91124
Jack91124 requested review from a team as code owners November 26, 2026 04:55
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 04:55
@github-actions github-actions Bot added new-submission PR adds at least one new contribution skills PR touches skills labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 1 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:medium — New or substantially changed resource without privileged execution
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.

Why this tier
  • Adds 1 file(s), e.g. skills/ai-extension-manager/SKILL.md
  • Changes 68 lines (low-risk limit is 40)

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Skill validation ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s)
  • No staffed reviewer pool owns these files yet; any reviewer with write access counts as the domain reviewer.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for 9f9eb9c · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

✅ All checks passed

Scope Checked
Skills 1
Agents 0
Total 1
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ ✅ ai-extension-manager (2/2 checks passed)
ℹ️ ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
ℹ️ ✓ spec-compliance: All spec checks passed.
ℹ️ ✓ [valid-refs] All file references across 1 skill(s) are valid.
ℹ️ ✓ valid-refs: All file references resolve to existing files within the skill directory.
ℹ️ 1 skill(s) linted, 1 passed
Full linter output
### Linting skills/ai-extension-manager
✅ ai-extension-manager (2/2 checks passed)
    ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
        ✓ spec-compliance: All spec checks passed.
    ✓ [valid-refs] All file references across 1 skill(s) are valid.
        ✓ valid-refs: All file references resolve to existing files within the skill directory.

1 skill(s) linted, 1 passed

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow hardcodes the wrong import type for non-skill resources, includes a broken conflict-policy command, and leaves secret-handling safeguards and synchronization scope unclear.

7 open issues
What changed in this PR

Adds an Agent Skill that guides GitHub Copilot through using AI Extension Manager to manage and synchronize resources across coding agents.

Changes:

  • Documents CLI setup, resource detection and import, and two-way synchronization.
  • Describes conflict states, backups, restoration, and safety rules.
  • Adds the skill to the repository’s skills catalog.
File Description
skills/​ai-extension-manager/​SKILL.md Defines skill metadata, usage triggers, CLI workflows, and safety guidance.
docs/​README.skills.md Adds the skill’s catalog entry and installation command.

Review effort: Max (adaptive)

@@ -0,0 +1,67 @@
---
name: ai-extension-manager
description: 'Use this skill when the user wants to download, install, manage, or synchronize AI agent skills, plugins, MCP configs, or rules across multiple AI coding tools (Claude Code, Codex, Gemini CLI, Cursor, VS Code Copilot, DSH). Trigger for prompts like sync my skills across agents, import this GitHub skill, install this skill everywhere, check for config conflicts, or back up my agent setup. Provides a local-first central library with SHA-256 three-way sync, per-target backups, and conflict detection that never overwrites changes without consent.'
Install the CLI (Python 3.9+):

```bash
pip install ai-extension-manager
## Core workflow

1. **Initialize a central library** (one-time): `aem init` — creates `~/.ai-extension-manager` with `library/`, `metadata/`, `backups/`, `conflicts/`, and `logs/`. Use `--home <dir>` to place it elsewhere.
2. **Detect a resource**: `aem detect --url <github-url>` or `aem detect --path <dir>` — classifies the source as skill, plugin, MCP, or rules. A URL alone cannot determine type; clone and inspect before deciding.

1. **Initialize a central library** (one-time): `aem init` — creates `~/.ai-extension-manager` with `library/`, `metadata/`, `backups/`, `conflicts/`, and `logs/`. Use `--home <dir>` to place it elsewhere.
2. **Detect a resource**: `aem detect --url <github-url>` or `aem detect --path <dir>` — classifies the source as skill, plugin, MCP, or rules. A URL alone cannot determine type; clone and inspect before deciding.
3. **Import**: `aem import --source <dir> --type skill` — copies into the central library with a SHA-256 manifest and version snapshot. Add `--allow-risk` / `--allow-secrets` only after user approval.
Comment on lines +38 to +40
4. **Scan agents**: `aem scan` — detects which of the six tools are installed and where their skills/plugins live.
5. **Distribute**: `aem sync --direction distribute --agent claude --resource <name>` (or `--all` for every compatible tool). Default mode is copy; use `--mode link` only when platform compatibility is verified.
6. **Reverse import**: `aem sync --direction import --agent codex --all` — brings locally edited skills back into the library as a new version.
- **D**: target file deleted → conflict; require explicit choice.
- **E**: target directory missing → report, do not guess.

Conflict resolution: `aem compare --resource <name> --diff`, then `aem sync --direction distribute --on-conflict library|target|overwrite|new-version`. Default never overwrites. See `aem doctor` for environment and mirror-rewrite warnings.
## Safety rules

- Never overwrite an existing file without an explicit conflict decision.
- Never write API keys or secrets into the shared library; secrets are redacted to environment-variable placeholders.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk:medium new-submission PR adds at least one new contribution ready-for-review Submission passed intake validation and is ready for maintainer review skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants