mirror of
https://github.com/obra/superpowers.git
synced 2026-04-21 00:49:06 +08:00
Add .claude settings to scaffolds for auto-approved permissions
This commit is contained in:
@@ -18,6 +18,23 @@ git init
|
|||||||
cp "$SCRIPT_DIR/design.md" .
|
cp "$SCRIPT_DIR/design.md" .
|
||||||
cp "$SCRIPT_DIR/plan.md" .
|
cp "$SCRIPT_DIR/plan.md" .
|
||||||
|
|
||||||
|
# Create .claude settings to allow reads/writes in this directory
|
||||||
|
mkdir -p .claude
|
||||||
|
cat > .claude/settings.local.json << 'SETTINGS'
|
||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"Read(**)",
|
||||||
|
"Edit(**)",
|
||||||
|
"Write(**)",
|
||||||
|
"Bash(go:*)",
|
||||||
|
"Bash(mkdir:*)",
|
||||||
|
"Bash(git:*)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SETTINGS
|
||||||
|
|
||||||
# Create initial commit
|
# Create initial commit
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Initial project setup with design and plan"
|
git commit -m "Initial project setup with design and plan"
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ echo ""
|
|||||||
|
|
||||||
# Run claude and capture output
|
# Run claude and capture output
|
||||||
# Using stream-json to get token usage stats
|
# Using stream-json to get token usage stats
|
||||||
|
# Run from project directory so .claude/settings.local.json is picked up
|
||||||
|
cd "$OUTPUT_DIR/project"
|
||||||
claude -p "$PROMPT" \
|
claude -p "$PROMPT" \
|
||||||
--plugin-dir "$PLUGIN_DIR" \
|
--plugin-dir "$PLUGIN_DIR" \
|
||||||
--output-format stream-json \
|
--output-format stream-json \
|
||||||
|
|||||||
@@ -18,6 +18,24 @@ git init
|
|||||||
cp "$SCRIPT_DIR/design.md" .
|
cp "$SCRIPT_DIR/design.md" .
|
||||||
cp "$SCRIPT_DIR/plan.md" .
|
cp "$SCRIPT_DIR/plan.md" .
|
||||||
|
|
||||||
|
# Create .claude settings to allow reads/writes in this directory
|
||||||
|
mkdir -p .claude
|
||||||
|
cat > .claude/settings.local.json << 'SETTINGS'
|
||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"Read(**)",
|
||||||
|
"Edit(**)",
|
||||||
|
"Write(**)",
|
||||||
|
"Bash(npm:*)",
|
||||||
|
"Bash(npx:*)",
|
||||||
|
"Bash(mkdir:*)",
|
||||||
|
"Bash(git:*)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SETTINGS
|
||||||
|
|
||||||
# Create initial commit
|
# Create initial commit
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Initial project setup with design and plan"
|
git commit -m "Initial project setup with design and plan"
|
||||||
|
|||||||
Reference in New Issue
Block a user