원클릭으로
script-advisor
脚本工程化执行器。四层架构:原子→组合→Agent→配置。AI执行任务时优先使用脚本。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
脚本工程化执行器。四层架构:原子→组合→Agent→配置。AI执行任务时优先使用脚本。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
AI Agent Skill for meeting management. Audio transcription and structured storage with entity linking.
Automatically archive old documents from active/daily/ to archive/ based on file age. Archives files older than specified days into archive/YYYY-MM/ directories.
Security guidance and best practices for code development. Use when writing authentication code, handling sensitive data, validating user input, designing APIs, or reviewing code for security issues.
Generate codemods for large-scale code changes. Use when refactoring patterns across many files.
Automatically archive old documents from active/ to archive/ based on age and relevance rules.
Use Brave Search API to search the web and return structured results (title/url/snippet). Trigger when the user asks to enable Brave search, configure Brave API key, or perform web search using Brave.
| name | script-advisor |
| description | 脚本工程化执行器。四层架构:原子→组合→Agent→配置。AI执行任务时优先使用脚本。 |
"先正常使用,token高了再用脚本" - 智能辅助,非强制
| 层级 | 类型 | Token | 示例 |
|---|---|---|---|
| Layer 1 | 原子脚本 | 零 | check_disk.sh |
| Layer 2 | 组合脚本 | 低 | deploy.sh |
| Layer 3 | Agent接口 | 极低 | --brief 模式 |
| Layer 4 | 配置即代码 | 零 | env/prod.json |
| 条件 | 动作 |
|---|---|
| 单次 >500 token | 考虑脚本 |
| 累计 >2000 token | 积极脚本 |
| 重复 >3 次 | 必须脚本 |
| 文件操作 | 用 kimi-bridge |
kimi-bridge.sh analyze "统计ERROR" /var/log
kimi-bridge.sh edit --dry-run "修复bug" /project file.py
kimi-bridge.sh search "查找TODO" /project
kimi-bridge.sh batch --dry-run "重命名" /logs
| 任务 | 方案 |
|---|---|
| 分析文件 | kimi-bridge.sh analyze |
| 编辑文件 | kimi-bridge.sh edit |
| 搜索内容 | kimi-bridge.sh search |
| 批量操作 | kimi-bridge.sh batch |
| 系统操作 | 传统 Layer 1/2 |
scripts/
├── core/ # 核心系统(备份、配置)
├── monitor/ # 监控告警
├── gateway/ # Gateway管理
├── autonomous/ # 自主系统
├── ai/ # AI管理
├── document/ # 文档生命周期
├── task/ # 任务管理
├── test/ # 测试脚本
├── utils/ # 工具函数
└── registry.json
| 任务 | 脚本 |
|---|---|
| 系统状态 | monitor/check-all-channels.sh --brief |
| 配置备份 | core/config-backup.sh --brief |
| 安全编辑配置 | core/openclaw-config-edit.sh "sed -i 's/old/new/' file" |
| Gateway | gateway/gateway-manage.sh --brief status |
| 文件分析 | utils/kimi-bridge.sh analyze --brief |
| 文件编辑 | utils/kimi-bridge.sh edit --brief |
修改重要配置文件时必须使用安全编辑工具:
# OpenClaw 配置专用
./scripts/core/openclaw-config-edit.sh \
"sed -i 's/\"ask\": \"never\"/\"ask\": \"off\"/' ~/.openclaw/openclaw.json"
# 通用安全编辑(任何重要文件)
./scripts/core/safe-edit.sh ~/.openclaw/openclaw.json \
"python3 fix-config.py" \
"python3 -m json.tool ~/.openclaw/openclaw.json > /dev/null"
流程:自动备份 → 执行修改 → 验证 →(失败自动回滚)
openclaw status → 用 check-all-channels.shcat config → 用 wecom-config.sh详细模板见 references/