Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

claude-code-local

v1.0.0

Call Claude Code as a non-interactive coding agent on the same machine as OpenClaw. Use when: (1) You need to delegate coding, refactoring, or bug-fixing tas...

0· 14· 1 versions· 0 current· 0 all-time· Updated 4h ago· MIT-0

Claude Code Local

调用本机 Claude Code 作为非交互 coding agent。Orchestrator 负责指挥和验收,Claude Code 负责写代码。

Quick Reference

场景命令模板
短任务cd <project> && claude --bare -p "<任务>" --max-turns 10
长任务cd <project> && claude --bare -p "<任务>" --output-format stream-json --verbose --include-partial-messages --max-turns 30
全权限cd <project> && claude --bare -p "<任务>" --dangerously-skip-permissions --output-format stream-json --verbose --include-partial-messages --max-turns 30
只读分析cd <project> && claude --bare -p "<任务>" --permission-mode plan --allowedTools "Read,Glob,Grep,LSP" --max-turns 10
JSON 输出cd <project> && claude --bare -p "<任务>" --output-format json --max-turns 10

Key Flags

FlagPurpose
--bareMinimal mode, skip hooks/LSP/plugins, faster startup
-p / --printNon-interactive, output to stdout (do not use PTY)
--max-turns NLimit turns: 10 short, 30 long
--output-format stream-jsonStreaming output, prevents timeout
--output-format jsonSingle JSON with result field
--verboseDetailed logging (with stream-json)
--include-partial-messagesIncremental output (with stream-json)

Permission Modes

Default to the lowest level that accomplishes the task.

LevelModeFlagsUse Case
1 Readplan--permission-mode plan --allowedTools "Read,Glob,Grep,LSP"Code exploration, doc review
2 Analyzedefault--allowedTools "Read,Bash,Glob,Grep,LSP"Run diagnostic commands
3 EditacceptEdits--permission-mode acceptEdits --allowedTools "Read,Edit,Write,Bash,Glob,Grep,LSP"Modify source files
4 Fullbypass--dangerously-skip-permissionsTrusted projects, batch ops

Timing Expectations

ComplexityDurationmax-turns
Simple (回答问题)2-5 min5-10
Medium (探索+单文件)5-15 min10-20
Complex (多文件+测试)15-30 min20-40

Never kill Claude Code when exec times out. Check ps aux | grep claude first.

Post-Task Checklist

  • Summary of changes
  • Modified files list
  • Commands executed
  • git status --short
  • git diff --stat
  • Test results
  • Next steps

References

  • references/streaming.md — Stream-JSON event types and filtering
  • references/troubleshooting.md — Common failures and fixes

Version tags

latestvk9707ksysp5mqzntt4dkabez8s85rwg1