cloning-projectlisted
Install: claude install-skill oaustegard/claude-skills
# Cloning Project
When users request to clone, copy, export, or backup their current project:
## Step 1: Verify Project Context
Check if the user is in a project by looking for project-specific indicators:
- Project instructions in the context window
- Knowledge files mentioned in `<available_skills>` or similar sections
- User explicitly stating they're in a project
If not in a project, inform the user that this skill requires being inside a Claude project.
## Step 2: Gather Project Instructions
Project instructions are typically found in the context window as XML or markdown content describing the project's purpose and configuration. Extract and save these instructions to a file.
Create the instructions file:
```bash
cat > /home/claude/project-instructions.md << 'INSTRUCTIONS'
[Extracted project instructions content]
INSTRUCTIONS
```
## Step 3: Locate Knowledge Files
Knowledge files are user-uploaded documents stored in `/mnt/user-data/uploads/`. List all files:
```bash
ls -lh /mnt/user-data/uploads/
```
If knowledge files exist, copy them to the working directory for bundling:
```bash
cp /mnt/user-data/uploads/* /home/claude/project-export/
```
## Step 4: Create Export Bundle
**If only project instructions exist (no knowledge files):**
- Copy instructions directly to outputs:
```bash
cp /home/claude/project-instructions.md /mnt/user-data/outputs/
```
**If project has both instructions and knowledge files:**
- Create an organized export directory:
```b