← 返回 Skills 市场
anova44

Training Manager

作者 anova44 · GitHub ↗ · v0.1.4
linuxdarwin ✓ 安全检测通过
660
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install openclaw-training-manager
功能描述
Manage and optimize your OpenClaw training workspace -- scaffold files, generate skills, log training sessions, and validate workspace structure.
安全使用建议
This skill appears coherent and implements its own safety checks (prompt-injection detection tiers, shell metacharacter checks, rate limiting, whitelisted file writes). Before installing or running it, review the scripts yourself and take these practical steps: 1) Run it in a test or isolated workspace (set OPENCLAW_WORKSPACE to an empty directory) so it can't touch your real data. 2) Inspect workspace files for secrets — the skill reads and writes files in the workspace and will expose file contents during the interactive flow. 3) If you plan to generate skills from untrusted input, note generate-skill.sh writes SKILL.md into workspace/skills; treat generated skills like third-party code and review them before enabling. 4) The README mentions cloning from GitHub / a hub; only install from sources you trust. 5) The pre-scan injection hit is defensive: it comes from the blocklist inside the security library. If you want higher assurance, run the scripts through a local audit (shellcheck, manual read) before use.
功能分析
Type: OpenClaw Skill Name: openclaw-training-manager Version: 0.1.4 The OpenClaw Training Manager skill bundle is benign. It demonstrates a strong focus on security, particularly against prompt injection and shell injection. The `SKILL.md` instructs the AI agent to use dedicated, sanitized scripts for all file operations and to perform agent-level screening of user input. A centralized `scripts/lib/security.sh` library provides robust tiered prompt injection filtering, shell metacharacter validation, and rate limiting. All scripts handling user input (`generate-skill.sh`, `log-training.sh`, `write-file.sh`) correctly implement these security measures, including path traversal prevention and input validation. There is no evidence of malicious intent, data exfiltration, unauthorized remote control, or persistence mechanisms.
能力评估
Purpose & Capability
The name and description (training manager / workspace scaffolding, skill generation, logging, validation) match the provided scripts and SKILL.md. Required runtime is only bash and an optional OPENCLAW_WORKSPACE path; scripts operate on the workspace files they claim to manage. No unexpected external services, credentials, or unrelated binaries are requested.
Instruction Scope
Runtime instructions direct the agent to run the included scripts, perform interactive onboarding, write bootstrap files via a dedicated writer, analyze/validate workspace files, export backups, and create skills under workspace/skills. This is within purpose. Note: Phase 4 asks to display full source of included files to the operator (useful for review but could expose secrets if the workspace contains them). Also, a prompt-injection blocklist appears in the SKILL.md (and is used by the security library) — the static detector flagged the phrase but it appears to be defensive rather than malicious.
Install Mechanism
No automated install spec is embedded (instruction-only skill plus shipped scripts). The README suggests cloning from GitHub or a hub but the skill itself does not download or execute remote archives. This lowers install risk.
Credentials
No required environment variables or credentials are declared. Scripts optionally respect OPENCLAW_WORKSPACE and use HOME for backup paths; they do not request cloud or third-party secrets. The tool writes to the user's workspace and backup directory, which is proportional to its functionality.
Persistence & Privilege
always:false and the skill does not request system-wide persistence. It creates and manipulates files only inside the declared workspace (~/.openclaw/workspace or OPENCLAW_WORKSPACE) and backup directory; it can generate new skills under workspace/skills, which is expected behavior. It does not modify other skills' configs outside that workspace.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-training-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-training-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.4
- Added security.sh and write-file.sh scripts for improved file-write safety and prompt injection defense. - All workspace file writes during setup and onboarding now route through write-file.sh for prompt sanitization. - Updated setup flow to call write-file.sh instead of direct file writes for IDENTITY.md, USER.md, SOUL.md, AGENTS.md, TOOLS.md, and MEMORY.md. - Clarified instructions to never write workspace files directly; all writes are filtered. - No changes to user-facing commands or behaviors outside the improved onboarding file-safety measures.
v0.1.3
- Added proactive workspace management and clean up for advanced users - Added new script: `scripts/analyze.sh` to the repository. - This addition may support future automation or analysis workflows within the training manager.
v0.1.2
## 1.0.2 — Security Hardening ### Prompt Injection Defense (NEW) Content written by this skill lands in workspace files that become part of the agent's system prompt. This release adds two layers of protection against malicious content being injected into behavioral rules or generated skills. **Layer 1 — Agent-level screening (SKILL.md):** - New "Content Security" section in behavioral guidelines - Agent must screen all content before calling write scripts - Detects instruction override attempts, data exfiltration phrases, encoded commands, and behavioral rule masquerading - Suspicious content is shown to the operator for explicit confirmation before proceeding - Reinforces "translate, don't transcribe" policy — agent rephrases corrections into scoped directives rather than copying raw input verbatim **Layer 2 — Script-level filters (log-training.sh, generate-skill.sh):** - New `check_prompt_injection()` function in both scripts - Pattern-matches against 19 regex patterns covering: - Instruction overrides ("ignore previous instructions", "you are now", "disregard all rules", etc.) - Data exfiltration ("secretly send", "upload all files to", "exfiltrate", etc.) - Obfuscation (base64 encode/decode) - Suspicious outbound commands (curl POST, wget --post) - Hard reject with clear error message - Escape hatch: edit target files manually for legitimate content that triggers false positives ### Shell Injection Fixes (from 1.0.1) - All `echo` replaced with `printf '%s'` for variable interpolation - Backtick and `$()` command substitution blocked in all user-provided arguments - `requires_bins` and `requires_env` validated against character class whitelist - Consolidate `TARGET_FILE` restricted to whitelisted bootstrap filenames only - Path traversal (`/`, `\`, `..`) blocked in consolidate filename argument - Empty slug guard in generate-skill.sh ### Bug Fixes - Fixed `((var++))` causing silent script exit under `set -e` in validate.sh (all 6 instances) - Fixed consolidation awk pattern that leaked next section's heading into staging file - Fixed `/^## [^T]/` heading pattern that skipped headings starting with "T" (e.g. "## Tools") ### Interactive Onboarding (from 1.0.0) - New `setup` command with 5-phase conversational onboarding flow - Auto-detection: if 2+ core workspace files are missing, setup starts automatically - Translation table for converting conversational answers into proper agent directives - Post-setup validation runs automatically - Scaffold preserved as fallback for power users who prefer raw templates
v0.1.1
openclaw-training-manager v0.1.1 - Initial release with core functionality for OpenClaw training workspace management. - Added scripts: export, generate-skill, log-training, scaffold, status, and validate for automation of common workspace tasks. - Supports interactive onboarding, skill generation, workspace scaffolding, training correction logging, and workspace validation. - Comprehensive documentation included in README.md.
v0.1.0
Initial release with interactive workspace setup and management. - Adds conversational onboarding to create all core workspace files based on users' real answers (no placeholders). - Auto-detects missing setup and launches onboarding flow; falls back to scaffolding raw templates for advanced users. - Generates agent instructions, tone, and workspace config from operator input, previewing before writing. - Supports skills generation with prompts for required details and environment. - Logs training corrections and session memories, including immediate initial log after setup. - Validates workspace for correct structure after setup or changes.
元数据
Slug openclaw-training-manager
版本 0.1.4
许可证
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Training Manager 是什么?

Manage and optimize your OpenClaw training workspace -- scaffold files, generate skills, log training sessions, and validate workspace structure. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 660 次。

如何安装 Training Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-training-manager」即可一键安装,无需额外配置。

Training Manager 是免费的吗?

是的,Training Manager 完全免费(开源免费),可自由下载、安装和使用。

Training Manager 支持哪些平台?

Training Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin)。

谁开发了 Training Manager?

由 anova44(@anova44)开发并维护,当前版本 v0.1.4。

💬 留言讨论