一键导入
bundle
Bundle and share code as gists or markdown. Use to create shareable code bundles, extract imports, and create GitHub gists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bundle and share code as gists or markdown. Use to create shareable code bundles, extract imports, and create GitHub gists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Always search before starting any work across all coding agent session histories (Claude Code, Codex, Cursor, Gemini CLI, Aider, ChatGPT) to find whatever we've discussed before.
Spawn 5 Opus subagents with randomly-generated distinct personas to debate a problem from multiple angles. Use when exploring UX decisions, architecture choices, or any decision that benefits from diverse perspectives arguing creatively.
Configure Karabiner-Elements keyboard remapping using Goku EDN syntax. Use when creating keybindings, layers, simlayers, app-specific shortcuts, or modifying karabiner.edn.
Bundle code context for AI. ALWAYS use --limit 49k unless user explicitly requests otherwise. Use for creating shareable code bundles and preparing context for LLMs.
Build Raycast extensions with React and TypeScript. Use when the user asks to create a Raycast extension, command, or tool.
Create new Agent Skills for Claude Code. Use when user wants to create a skill, add a new capability, document a CLI workflow, or asks how skills work.
| name | bundle |
| description | Bundle and share code as gists or markdown. Use to create shareable code bundles, extract imports, and create GitHub gists. |
Bundle code for sharing via gists or markdown.
# GitHub CLI for gists
brew install gh
gh auth login
# Single file gist (public)
gh gist create file.ts
# Private gist
gh gist create --private file.ts
# Multiple files
gh gist create file1.ts file2.ts file3.ts
# With description
gh gist create -d "My code snippet" file.ts
# From stdin
echo "console.log('hello')" | gh gist create -f hello.js
# Public with description
gh gist create -d "Utility functions" --public utils.ts helpers.ts
# Your gists
gh gist list
# With limit
gh gist list --limit 20
# Public only
gh gist list --public
# Secret only
gh gist list --secret
# View gist content
gh gist view <gist-id>
# View specific file
gh gist view <gist-id> --filename utils.ts
# Get raw content
gh gist view <gist-id> --raw
# Edit in editor
gh gist edit <gist-id>
# Add file to gist
gh gist edit <gist-id> --add newfile.ts
# Remove file
gh gist edit <gist-id> --remove oldfile.ts
# Clone as repo
gh gist clone <gist-id>
# Clone to specific directory
gh gist clone <gist-id> my-snippet
gh gist delete <gist-id>
#!/bin/bash
# bundle-file.sh - Bundle a file with its local imports
FILE=$1
OUTPUT=${2:-bundle.md}
echo "# Code Bundle" > $OUTPUT
echo "" >> $OUTPUT
echo "## Main File: $FILE" >> $OUTPUT
echo '```typescript' >> $OUTPUT
cat $FILE >> $OUTPUT
echo '```' >> $OUTPUT
# Extract and include imports
grep -E "^import.*from ['\"]\./" $FILE | while read import; do
# Extract path
path=$(echo $import | sed -E "s/.*from ['\"](.+)['\"].*/\1/")
resolved="${path}.ts"
if [ -f "$resolved" ]; then
echo "" >> $OUTPUT
echo "## $resolved" >> $OUTPUT
echo '```typescript' >> $OUTPUT
cat "$resolved" >> $OUTPUT
echo '```' >> $OUTPUT
fi
done
echo "Bundle created: $OUTPUT"
#!/bin/bash
# Generate project context file
OUTPUT="CLAUDE.md"
echo "# Project Context" > $OUTPUT
echo "" >> $OUTPUT
# Package info
if [ -f "package.json" ]; then
echo "## Dependencies" >> $OUTPUT
echo '```json' >> $OUTPUT
jq '.dependencies' package.json >> $OUTPUT
echo '```' >> $OUTPUT
fi
# Key files
echo "" >> $OUTPUT
echo "## Key Files" >> $OUTPUT
for f in src/index.ts src/main.ts app.ts; do
if [ -f "$f" ]; then
echo "" >> $OUTPUT
echo "### $f" >> $OUTPUT
echo '```typescript' >> $OUTPUT
head -100 "$f" >> $OUTPUT
echo '```' >> $OUTPUT
fi
done
# Quick share a file as gist
share-code() {
local file=$1
local desc=${2:-"Code snippet"}
gh gist create -d "$desc" --public "$file" | tail -1
}
# Usage
share-code src/utils.ts "Utility functions"
# Extract import statements
grep -h "^import" src/**/*.ts | sort -u
# External imports only
grep -h "^import" src/**/*.ts | grep -v "from '\.\." | sort -u
# Local imports only
grep -h "^import" src/**/*.ts | grep "from '\.\." | sort -u
# Show what imports what
for f in src/**/*.ts; do
echo "=== $f ==="
grep "^import" "$f" | sed 's/.*from / <- /'
done
# Share specific function for review
FILE=src/auth.ts
START=$(grep -n "export function login" $FILE | cut -d: -f1)
END=$(tail -n +$START $FILE | grep -n "^}" | head -1 | cut -d: -f1)
sed -n "${START},$((START+END-1))p" $FILE | \
gh gist create -d "Login function for review" -f login.ts
# Create runnable demo
cat > /tmp/demo.ts << 'EOF'
// Demo: Array utilities
const nums = [1, 2, 3, 4, 5];
console.log(nums.filter(n => n % 2 === 0));
EOF
gh gist create -d "Quick demo" --public /tmp/demo.ts
# Bundle docs with code
gh gist create \
-d "My utility library" \
README.md \
src/utils.ts \
examples/usage.ts
-d for context