Skip to content
Back to skills

Config Reuse

ASecurity

Copy/sync Claude configs & rules from another project.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
developmentjavascripttypescriptpythonrustgojavabash

Works with

  • claude code

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill config-reuse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Config Reuse?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Config Reuse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-config-reuse/badge)](https://www.skillsdirectory.com/skills/majiayu000-config-reuse)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: config-reuse
description: Copy/sync Claude configs & rules from another project.
---

# Config Reuse

Import Claude Code configs (commands, skills, rules) from a source project into the current project or global config.

## Workflow

### 1. Detect Target Stack

Check current project for language indicators:

```bash
# Python?
[[ -f pyproject.toml ]] || [[ -f setup.py ]] || [[ -f requirements.txt ]] && echo python
# TypeScript?
[[ -f tsconfig.json ]] && echo typescript
# JavaScript?
[[ -f package.json ]] && echo javascript
# Rust?
[[ -f Cargo.toml ]] && echo rust
# Go?
[[ -f go.mod ]] && echo go
```

Save detected languages as `TARGET_LANGS`.

### 2. Scan Source

```bash
bash ~/.claude/skills/config-reuse/scripts/scan-configs.sh "$SOURCE_PATH"
```

Output: TSV with TYPE, REL_PATH, MD5, MARKERS per config file.

### 3. Compare

```bash
bash ~/.claude/skills/config-reuse/scripts/diff-configs.sh "$SOURCE_PATH" "$(pwd)"
```

Output: TSV with TYPE, REL_PATH, STATUS, MATCH_PATH.

### 4. Classify

Using script outputs + target stack:

**Skip:**
- `CLAUDE.local.md`, `.claudeignore` (always project-specific)
- Configs with `DOMAIN:*` markers (domain-specific)
- `identical_global` or `identical_project` status (already installed)
- Language-marked configs where language is NOT in `TARGET_LANGS`

**Auto-recommend:**
- `not_installed` configs with no `DOMAIN:*` markers AND (no language markers OR language in `TARGET_LANGS`)

**Needs judgment — read the file:**
- `differs_global` or `differs_project` status (merge decision)
- Root `CLAUDE.md` or `.claude/CLAUDE.md` (may have extractable sections)
- Rules with `paths:` frontmatter (check if glob matches target project)

### 5. Present and Copy

Show a table of recommendations grouped by action. Wait for approval.

Copy approved configs:
- **Commands** → `~/.claude/commands/` (global)
- **Skills** → `.claude/skills/` (project) or `~/.claude/skills/` (global, if general)
- **Rules** → `.claude/rules/` (project)
- Back up before overwriting: `cp <existing> ~/.claude/backups/<name>.bak.$(date +%s)`
- If a skill has a project name in `description:`, edit it after copying

## Safety

- Never copy `settings.local.json` or files matching `*secret*`, `*credential*`
- Back up before overwriting

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.