config-export
Exports the project's Claude configuration (CLAUDE.md + ai-context/) to tool-specific instruction files for GitHub Copilot, Google Gemini, and Cursor. Trigger: /config-export, export config, copilot instructions, gemini config, cursor rules.
What this skill does
# config-export
> Exports CLAUDE.md and ai-context/ to tool-native instruction files for GitHub Copilot, Google Gemini, and Cursor.
**Triggers**: `/config-export`, export config, copilot instructions, gemini config, cursor rules
---
## Purpose
`config-export` reads the project's Claude configuration (`CLAUDE.md` and any present `ai-context/` files) into an in-context bundle, lets the user select one or more target AI assistants, generates tool-specific instruction files via LLM transformation, shows a dry-run preview, and writes the confirmed files to their canonical locations. It never modifies source files and never writes without explicit user confirmation.
---
## Process
### Step 1 — Source collection
**Guard — no CLAUDE.md:**
If no `CLAUDE.md` exists in the current working directory, present the user with two paths:
```
No CLAUDE.md found in the current directory.
Choose an option:
1. project-setup first — run /project-setup to scaffold CLAUDE.md + ai-context/ in this project,
then re-run /config-export (recommended for new projects with SDD workflow)
2. SDD bootstrap — generate a minimal .github/copilot-instructions.md from the global SDD
template only (no project-specific stack or conventions)
Enter 1 or 2 (or press Enter to cancel):
```
- If the user selects **1**: emit `Run /project-setup, then re-run /config-export` and stop. No files are written.
- If the user selects **2**: proceed using the global SDD methodology as the sole source bundle (skip ai-context/ collection; note "No project CLAUDE.md — bootstrap mode" in transformation context).
- If the user cancels: emit `Export cancelled — no files written` and stop.
**Guard — no ai-context/:**
If no `ai-context/` directory is present, emit:
```
WARNING: ai-context/ not found — export quality will be lower; only CLAUDE.md will be used as source
```
Continue; `CLAUDE.md` alone is sufficient.
**Read and bundle source files in priority order:**
| # | File | Required? | Behavior when absent |
| --- | ---------------------------- | --------- | -------------------------------------------------------------------- |
| 1 | `CLAUDE.md` | Yes | Halt (see guard above) |
| 2 | `ai-context/stack.md` | No | Skip; note "stack.md not available" in transformation context |
| 3 | `ai-context/architecture.md` | No | Skip; note "architecture.md not available" in transformation context |
| 4 | `ai-context/conventions.md` | No | Skip; note "conventions.md not available" in transformation context |
| 5 | `ai-context/known-issues.md` | No | Skip silently if absent |
All present files are read into the in-context bundle before any transformation begins.
---
### Step 2 — Target selection
**If the user provided a target as a CLI argument** (e.g., `/config-export copilot`), skip the interactive menu and proceed directly to Step 3 with that target.
**Otherwise, present the target menu:**
```
Available export targets:
1. copilot → .github/copilot-instructions.md
2. gemini → GEMINI.md
3. cursor → .cursor/rules/conventions.mdc
→ .cursor/rules/stack.mdc
→ .cursor/rules/architecture.mdc
Enter targets (comma-separated numbers or names, or "all"):
```
**Claude target rejection:**
If the user requests target `claude` or `CLAUDE.md`, respond with:
```
The Claude target is not supported in V1 — use /project-update to refresh CLAUDE.md
```
Do not write any files; re-present the menu or halt based on user choice.
---
### Step 3 — Dry-run generation and confirmation
For each selected target, apply the corresponding transformation prompt (see sub-sections below). Then:
1. Display the full generated content for each file and its destination path.
2. If a target output file already exists at its canonical path, emit a warning **before** the confirmation prompt:
```
WARNING: Overwriting existing file: <path>
```
3. Prompt the user:
```
Write these files? [y/N]
```
Default is **N**.
4. If the user responds with anything other than `y`, exit cleanly:
```
Export cancelled — no files written
```
No files are written.
5. If the user responds `y`, proceed to Step 4.
These transformation prompts are self-instructions executed by the agent using its own in-context LLM reasoning. No external API call, subprocess, or tool invocation is required to apply them — the agent reads the prompt and generates the output directly.
#### Shared STRIP Preamble
The following items MUST be stripped from ALL target outputs. Each transformation prompt below references this block — apply it in addition to any target-specific delta listed in that prompt.
- All slash commands used as executable triggers (any `/<word>` pattern that is a Claude Code meta-tool or SDD phase command)
- Task tool references and sub-agent delegation patterns (`"Task tool:"`, `"subagent_type:"`, `"Launch sub-agent"`, `"Sub-agent launch pattern"`)
- install.sh and sync.sh references
- Claude Code-specific identity statements ("I am an expert development assistant…")
- The `## Skills Registry` section of `CLAUDE.md` (lines beginning with `~/.claude/skills/` or `.claude/skills/`)
- Any section whose content is enclosed between `<!-- [auto-updated]` and `<!-- [/auto-updated] -->` comment markers in `ai-context/` files
---
#### Copilot transformation prompt
Apply the following prompt to the source bundle to generate `.github/copilot-instructions.md`:
---
You are transforming a Claude Code project configuration into a GitHub Copilot instruction file.
**Source bundle:** CLAUDE.md + any available ai-context/ files provided above.
**STRIP:**
Apply the Shared STRIP Preamble above, then additionally strip:
- Plan Mode rules section (Claude Code-specific)
**ADAPT — do NOT strip; rewrite for Copilot:**
1. **SDD phase DAG and workflow** → Convert to a `## SDD Development Workflow` section written in declarative prose:
- Describe each phase (explore, propose, spec, design, tasks, apply, verify, archive) and its artifacts
- Include the artifact types (proposal, spec, design, tasks, verify-report, archive-report) and explain they are persisted to engram
- Do NOT include any slash command syntax — describe the phases as steps the developer initiates
2. **SDD available commands table** → Replace with a `## Active SDD Coaching Instructions` section containing Copilot behavioral instructions:
```
When a developer mentions implementing a new feature, change, or fix:
- Proactively ask: "Would you like to follow the SDD workflow for this change?"
- If yes, guide them step by step: propose → (spec + design in parallel) → tasks → apply → verify → archive
- Before starting apply, confirm that proposal, design, and tasks artifacts exist in the project's engram
- Remind the developer to run verify after implementation and archive once confirmed
```
Adapt the phrasing to be Copilot-idiomatic (imperative instructions telling Copilot how to behave).
3. **Project memory layer (ai-context/)** → Retain the table and description verbatim; it applies directly to projects using Copilot too.
**RETAIN and adapt:**
- Tech stack (language, framework, key tools, versions)
- Coding conventions (naming, style, patterns) — rephrase as direct instructions to the AI assistant in imperative voice
- Architecture decisions and rationale
- Known issues and gotchas relevant to a developer working in the project
- Key working principles (clean code, no over-engineering, tests as first-class citizens, etc.)
- SDD artifact types and engram topic key patterns
**FORMAT:**
- Single flat Markdown file
- UTF-8, no BOM
- H2 sections (no YAML frontmatter)
- Start with a top-levelRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.