[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77V0P0ZGCC85WDQSB330J5N":3,"skill-same:01M77V0P0ZGCC85WDQSB330J5N":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77V0P0ZGCC85WDQSB330J5N","skill-forge",null,"Detect repeated capability gaps, convert recurring user needs into candidate skills, scaffold new OpenClaw-compatible skills, and validate them before installation. Use when an agent repeatedly fails the same task, sees recurring feature requests, notices repetitive manual workflows, or wants to propose a new skill instead of solving the same problem ad hoc.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fskills-forge\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skill-forge\ndescription: Detect repeated capability gaps, convert recurring user needs into candidate skills, scaffold new OpenClaw-compatible skills, and validate them before installation. Use when an agent repeatedly fails the same task, sees recurring feature requests, notices repetitive manual workflows, or wants to propose a new skill instead of solving the same problem ad hoc.\n---\n\n# skill-forge\n\nUse this skill to turn repeated demand into a reviewed skill candidate.\n\nCurrent version: `v1.4.0 \"Evolve First\"`.\n\n## Core jobs\n\n1. Detect repeated capability gaps from logs, `.learnings`, and feature requests.\n2. Decide whether the pattern is stable enough to deserve its own skill.\n3. Classify the opportunity as `academic`, `product`, `integration`, `script`, or `workflow`.\n4. Generate a candidate skill folder with a usable `SKILL.md`, `agents\u002Fopenai.yaml`, and profile-specific resources.\n5. Validate and score the candidate before proposing installation.\n6. Run hidden smoke evaluation and Agent profile authorization before confirmed installation.\n7. Record feedback from later usage and propose reviewed updates instead of mutating installed skills directly.\n8. Provide the Somnia runtime used by scheduled nightly review to find skills with bugs, weak scores, or update-worthy feedback.\n9. Use redacted replay cases to check whether candidates actually cover real feedback-derived tasks.\n10. Provide a product console (`scripts\u002Fskill_forge.py`) so agents can run doctor checks, demos, forge flows, evolution, feedback capture, replay, and release gates from one entry point.\n\n## Trigger Cues\n\nUse this skill when the user or agent mentions:\n\n- repeated failure\n- missing capability\n- recurring workflow\n- feature request\n- make a new skill\n- scaffold a skill\n- validate a generated skill\n\n## Default Workflow\n\n1. Detect repeated capability gaps from learning files or session-derived notes.\n2. Classify the strongest opportunity into a skill profile.\n3. When `--prefer-evolve` is set, route the opportunity through `decide_skill_action.py` first; if it matches an installed skill, evolve that skill instead of forging a new one.\n4. Scaffold a candidate skill with profile-specific resources (forge path).\n5. Validate the candidate and inspect score, warnings, and references.\n6. Run hidden smoke evaluation without exposing simulated cases to users.\n7. Propose installation, then require Telegram approval before applying it.\n8. Record future usage feedback and run an evolution pipeline when enough feedback accumulates.\n9. During scheduled reviews, write summary reports and optionally propose updates without exposing hidden evaluation details.\n10. Run replay evaluation before approving evolved candidates when replay cases exist.\n11. Before release, run package checks and golden scaffold checks across all supported profiles.\n12. Run deterministic benchmarks before release to enforce validation, hidden-eval, line-count, and runtime budgets.\n\n## Resource Loading\n\nKeep this `SKILL.md` focused on the operating path. Load bundled references only when the current task needs them:\n\n- Read `references\u002Fheuristics.md` when deciding whether a repeated need deserves a skill.\n- Read `references\u002Fskill-quality-rubric.md` when reviewing candidate quality or explaining a validation score.\n- Read `references\u002Fmilestone-architecture.md` when changing install gates, replay gates, or evolution flow.\n- Read `references\u002Fforge-console.md` when using or modifying the product console.\n\n## Execution Mode\n\nUse medium freedom for planning and candidate design, but low freedom for install, uninstall, release checks, signed approval, replay regression, and file mutation paths.\n\n## Commands\n\n### Forge Console\n\nPrefer the product console for normal use:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py doctor --json\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py demo --json\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py forge --output .\u002Fgenerated --install plan --json\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py release-check --json\n```\n\nFrom the source repository, `make package-check` runs the same release gate plus secret scanning.\n\nUse lower-level scripts only when a workflow needs exact control over one stage.\n\n### Detect\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fdetect_skill_opportunities.py --json\n```\n\nAdd `--source` paths when a specific workspace or learnings file should be analyzed.\n\n### Decide (evolve-or-forge routing)\n\nAfter detect, ask whether the opportunity should evolve an existing installed skill or forge a new one. Use this to prevent skill sprawl when a request is really just a new trigger surface for something the user already installed.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py decide \\\n  --skill-name \"literature-review-helper\" \\\n  --triggers \"APA format, MLA format, literature review, source metadata\" \\\n  --template academic \\\n  --reason \"user keeps asking for APA literature reviews\" \\\n  --json\n```\n\nOutput is one of `evolve` \u002F `forge` \u002F `ambiguous` plus per-candidate fitness scores. To run the full pipeline with auto-routing, pass `--prefer-evolve` to `forge`:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py forge \\\n  --output .\u002Fgenerated --install plan --prefer-evolve --json\n```\n\nProfile mismatch is a hard gate (fitness 0). The replay non-regression gate downstream catches any mis-routed evolution that would degrade the installed baseline.\n\n### Choose\n\nOnly create a skill when the pattern is:\n\n- recurring\n- broad enough to reuse\n- structured enough to document\n- more stable than a one-off prompt\n\nIf the need is too narrow, keep it as a note or workflow rule instead.\n\n### Scaffold\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fgenerate_skill_scaffold.py \\\n  --skill-name my-skill \\\n  --output .\u002Fgenerated \\\n  --goal \"What the skill should achieve.\" \\\n  --triggers \"keyword1, keyword2\" \\\n  --template auto\n```\n\n### Validate\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fvalidate_skill_candidate.py .\u002Fgenerated\u002Fmy-skill\n```\n\n### Propose Installation\n\nPlan only (safe to run anywhere, no Telegram, no secrets):\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fpropose_skill_install.py .\u002Fgenerated\u002Fmy-skill --json\n```\n\n`--apply` is gated by a signed approval token. Direct invocation without a token is blocked. Use the full pipeline (`forge_pipeline.py --install telegram`) for the normal install path, or call `telegram_approval.py` first and pass its `approval_token` to `propose_skill_install.py --apply --approval-token \u003Ctoken>`. The token is HMAC-bound to the skill name, target path, install method, source path, and a hash of the source directory's contents, so any post-approval edit invalidates it. Token issuance and install apply both require the source to be an existing skill directory containing `SKILL.md`.\n\n### Record Feedback\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Frecord_skill_feedback.py \\\n  --skill my-skill \\\n  --agent-name StudyAgent \\\n  --rating negative \\\n  --feedback \"触发词: literature review. The skill should handle literature review planning better.\" \\\n  --json\n```\n\n### Propose Evolution\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fevolve_skill_pipeline.py \\\n  --skill my-skill \\\n  --output .\u002Fgenerated-updates \\\n  --install plan \\\n  --replay hidden \\\n  --min-replay-improvement 0 \\\n  --agent-name StudyAgent \\\n  --json\n```\n\nWhen an installed copy of `my-skill` exists under `--target-root`, the candidate and the installed baseline are scored against the same redacted replay cases. The pipeline blocks the install when `candidate_score - baseline_score \u003C --min-replay-improvement` (default `0`, i.e. no regression). Pass `--min-replay-improvement -100` to disable the regression check.\n\n### Replay Evaluation\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Freplay\u002Fcollect_replay_cases.py \\\n  --feedback-file ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002Fskill-feedback.jsonl \\\n  --skill my-skill \\\n  --json\n\npython3 {baseDir}\u002Fscripts\u002Freplay\u002Frun_replay_eval.py \\\n  --skill-dir .\u002Fgenerated-updates\u002Fmy-skill \\\n  --skill my-skill \\\n  --json\n```\n\n### Nightly Review\n\nSomnia is now packaged as its own skill for scheduled maintenance. These compatibility commands remain available from Skill Forge:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fnightly_skill_review.py \\\n  --scope managed \\\n  --propose-updates \\\n  --replay hidden \\\n  --update-install plan \\\n  --json\n```\n\nInstall a macOS daily sleep-hour schedule, defaulting to 03:00 local time:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fschedule_nightly_review.py \\\n  --hour 3 \\\n  --minute 0 \\\n  --scope managed \\\n  --propose-updates \\\n  --update-install plan \\\n  --apply \\\n  --json\n```\n\nUse `--telegram-report` with `--env-file ~\u002F.openclaw\u002Fskill-forge.env` when scheduled runs should send a summary report to Telegram. The env file should define `TELEGRAM_BOT_TOKEN` and `TELEGRAM_CHAT_ID`.\n\nUninstall or rollback a generated skill. Like install, `--uninstall --apply` requires a signed approval token issued by `telegram_approval.py` for the same skill, target, and method. Plan-only (no `--apply`) works without a token and just prints what would happen:\n\n```bash\n# Plan (no token, no mutation)\npython3 {baseDir}\u002Fscripts\u002Fpropose_skill_install.py my-skill --uninstall --json\n\n# Apply (requires a fresh approval token bound to the same skill\u002Ftarget\u002Fmethod)\npython3 {baseDir}\u002Fscripts\u002Finstall\u002Ftelegram_approval.py \\\n  --skill my-skill \\\n  --profile workflow \\\n  --validation-score 100 --validation-grade milestone \\\n  --evaluation-score 100 --evaluation-passed \\\n  --target \"$HOME\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fmy-skill\" \\\n  --method symlink \\\n  --json > approval.json\n\nAPPROVAL_TOKEN=\"$(python3 -c 'import json; print(json.load(open(\"approval.json\"))[\"approval_token\"])')\"\n\npython3 {baseDir}\u002Fscripts\u002Fpropose_skill_install.py my-skill \\\n  --uninstall --apply \\\n  --approval-token \"$APPROVAL_TOKEN\" \\\n  --restore-backup \\\n  --json\n```\n\n## Full Pipeline\n\nFor one-shot operation:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fforge_pipeline.py \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FFEATURE_REQUESTS.md \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FERRORS.md \\\n  --output .\u002Fgenerated \\\n  --eval hidden \\\n  --json\n```\n\nAsk through Telegram before installing:\n\n```bash\nexport TELEGRAM_BOT_TOKEN=\"...\"\nexport TELEGRAM_CHAT_ID=\"...\"\n\npython3 {baseDir}\u002Fscripts\u002Fforge_pipeline.py \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FFEATURE_REQUESTS.md \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FERRORS.md \\\n  --output .\u002Fgenerated \\\n  --install telegram \\\n  --agent-name StudyAgent \\\n  --json\n```\n\n## Decision rules\n\n- Prefer creating a skill over a new agent when the new capability is narrow.\n- Prefer a new agent over a skill when the work needs a distinct role, tools, and long-term memory boundary.\n- Prefer `references\u002F` when the skill mainly teaches structure and judgment.\n- Prefer `scripts\u002F` when the same code would otherwise be rewritten repeatedly.\n- Default to `--install plan`; use `--install telegram` for any mutation.\n- Treat `--install ask` and `--install auto` as blocked compatibility aliases.\n- Do not call `propose_skill_install.py --apply` directly; `--apply` requires a signed approval token issued by `telegram_approval.py` and bound to the skill name, target, method, source path, and source content hash. The HMAC secret is `SKILL_FORGE_APPROVAL_SECRET` if set, otherwise derived from the bot token. Tokens default to a 30-minute TTL.\n- A dry-run approval token (`mode=dry-run`) cannot mutate state. The pipeline reports `install_status=dry-run-blocked` and only `--allow-dry-run-install` on the install script lets it through, in which case the audit field is `approved_by=dry-run`.\n- Keep `--eval hidden` for user-facing flows so simulated checks and prompts are not exposed.\n- Use `--agent-name` before installation when a specific agent will receive the skill.\n- Never hard-code Telegram tokens; discover them from OpenClaw\u002Fenv files or environment variables.\n- Redact feedback text before storing it.\n- Treat feedback-driven changes as update candidates, not direct edits to installed skills.\n- Install evolved skills only after validation, hidden evaluation, authorization, and approval.\n- Replay runs as a non-regression gate during evolution: baseline (currently installed) and candidate are scored against the same redacted cases, and the candidate is blocked if `score - baseline \u003C --min-replay-improvement` (default `0`). Use `--min-replay-improvement -100` to disable. When no installed baseline exists the gate falls back to a single-skill coverage check.\n- Scheduled nightly review may propose updates, but install changes still require Telegram approval.\n- Nightly reports should show only health summaries, not hidden evaluation prompts or simulated checks.\n- Default nightly review scope is `managed`; use `--scope all` only for explicit full inventory audits.\n\n## Output Contract\n\nThe skill-forge output should include:\n\n- detected opportunity name\n- recommended template profile\n- generated candidate path\n- validation score and grade\n- install status\n- approval status when Telegram confirmation is used\n- nightly review report path when running scheduled review\n- install plan\n- review warnings, if any\n\n## Quality Gates\n\nBefore proposing installation, confirm:\n\n- the skill name is concrete and reusable\n- the description has clear trigger conditions\n- the generated structure matches the intended job\n- the candidate improves a real recurring workflow\n- validation score is at least 70\n- `grade=milestone` is preferred before sharing externally\n- installation threshold is at least 85 unless the user explicitly chooses otherwise\n- hidden smoke evaluation passes\n- target Agent profile policy allows the generated skill profile\n- Telegram approval is available before applying install or uninstall changes\n- feedback-derived updates are reviewed as candidates before replacing an installed skill\n- replay evaluation passes when replay cases exist\n- nightly review reports are written before any update proposal is installed\n- scheduled automation uses explicit launchd configuration and can be uninstalled\n\nRead `references\u002Fskill-quality-rubric.md` when evaluating a draft.\n\n## Resources\n\nReferences:\n- `references\u002Fheuristics.md`\n- `references\u002Fskill-quality-rubric.md`\n- `references\u002Fmilestone-architecture.md`\n- `references\u002Fforge-console.md`\n\nScripts:\n- `scripts\u002Fdetect_skill_opportunities.py`\n- `scripts\u002Fevaluate_skill_candidate.py`\n- `scripts\u002Fgenerate_skill_scaffold.py`\n- `scripts\u002Fvalidate_skill_candidate.py`\n- `scripts\u002Fforge_pipeline.py`\n- `scripts\u002Fskill_forge.py`\n- `scripts\u002Finstall\u002Fpropose_skill_install.py`\n- `scripts\u002Finstall\u002Ftelegram_approval.py`\n- `scripts\u002Fevolve\u002Fevolve_skill_pipeline.py`\n- `scripts\u002Fevolve\u002Fpropose_skill_update.py`\n- `scripts\u002Fevolve\u002Frecord_skill_feedback.py`\n- `scripts\u002Freplay\u002Fcollect_replay_cases.py`\n- `scripts\u002Freplay\u002Fcompare_replay_outputs.py`\n- `scripts\u002Freplay\u002Fredact_replay_case.py`\n- `scripts\u002Freplay\u002Freplay_report.py`\n- `scripts\u002Freplay\u002Frun_replay_eval.py`\n- `scripts\u002Fsomnia\u002Fnightly_skill_review.py`\n- `scripts\u002Fsomnia\u002Fschedule_nightly_review.py`\n\nCompatibility wrappers:\n- `scripts\u002Fpropose_skill_install.py`\n- `scripts\u002Ftelegram_approval.py`\n- `scripts\u002Fevolve_skill_pipeline.py`\n- `scripts\u002Fpropose_skill_update.py`\n- `scripts\u002Frecord_skill_feedback.py`\n- `scripts\u002Fnightly_skill_review.py`\n- `scripts\u002Fschedule_nightly_review.py`\n","# skill-forge\n\nUse this skill to turn repeated demand into a reviewed skill candidate.\n\nCurrent version: `v1.4.0 \"Evolve First\"`.\n\n## Core jobs\n\n1. Detect repeated capability gaps from logs, `.learnings`, and feature requests.\n2. Decide whether the pattern is stable enough to deserve its own skill.\n3. Classify the opportunity as `academic`, `product`, `integration`, `script`, or `workflow`.\n4. Generate a candidate skill folder with a usable `SKILL.md`, `agents\u002Fopenai.yaml`, and profile-specific resources.\n5. Validate and score the candidate before proposing installation.\n6. Run hidden smoke evaluation and Agent profile authorization before confirmed installation.\n7. Record feedback from later usage and propose reviewed updates instead of mutating installed skills directly.\n8. Provide the Somnia runtime used by scheduled nightly review to find skills with bugs, weak scores, or update-worthy feedback.\n9. Use redacted replay cases to check whether candidates actually cover real feedback-derived tasks.\n10. Provide a product console (`scripts\u002Fskill_forge.py`) so agents can run doctor checks, demos, forge flows, evolution, feedback capture, replay, and release gates from one entry point.\n\n## Trigger Cues\n\nUse this skill when the user or agent mentions:\n\n- repeated failure\n- missing capability\n- recurring workflow\n- feature request\n- make a new skill\n- scaffold a skill\n- validate a generated skill\n\n## Default Workflow\n\n1. Detect repeated capability gaps from learning files or session-derived notes.\n2. Classify the strongest opportunity into a skill profile.\n3. When `--prefer-evolve` is set, route the opportunity through `decide_skill_action.py` first; if it matches an installed skill, evolve that skill instead of forging a new one.\n4. Scaffold a candidate skill with profile-specific resources (forge path).\n5. Validate the candidate and inspect score, warnings, and references.\n6. Run hidden smoke evaluation without exposing simulated cases to users.\n7. Propose installation, then require Telegram approval before applying it.\n8. Record future usage feedback and run an evolution pipeline when enough feedback accumulates.\n9. During scheduled reviews, write summary reports and optionally propose updates without exposing hidden evaluation details.\n10. Run replay evaluation before approving evolved candidates when replay cases exist.\n11. Before release, run package checks and golden scaffold checks across all supported profiles.\n12. Run deterministic benchmarks before release to enforce validation, hidden-eval, line-count, and runtime budgets.\n\n## Resource Loading\n\nKeep this `SKILL.md` focused on the operating path. Load bundled references only when the current task needs them:\n\n- Read `references\u002Fheuristics.md` when deciding whether a repeated need deserves a skill.\n- Read `references\u002Fskill-quality-rubric.md` when reviewing candidate quality or explaining a validation score.\n- Read `references\u002Fmilestone-architecture.md` when changing install gates, replay gates, or evolution flow.\n- Read `references\u002Fforge-console.md` when using or modifying the product console.\n\n## Execution Mode\n\nUse medium freedom for planning and candidate design, but low freedom for install, uninstall, release checks, signed approval, replay regression, and file mutation paths.\n\n## Commands\n\n### Forge Console\n\nPrefer the product console for normal use:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py doctor --json\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py demo --json\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py forge --output .\u002Fgenerated --install plan --json\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py release-check --json\n```\n\nFrom the source repository, `make package-check` runs the same release gate plus secret scanning.\n\nUse lower-level scripts only when a workflow needs exact control over one stage.\n\n### Detect\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fdetect_skill_opportunities.py --json\n```\n\nAdd `--source` paths when a specific workspace or learnings file should be analyzed.\n\n### Decide (evolve-or-forge routing)\n\nAfter detect, ask whether the opportunity should evolve an existing installed skill or forge a new one. Use this to prevent skill sprawl when a request is really just a new trigger surface for something the user already installed.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py decide \\\n  --skill-name \"literature-review-helper\" \\\n  --triggers \"APA format, MLA format, literature review, source metadata\" \\\n  --template academic \\\n  --reason \"user keeps asking for APA literature reviews\" \\\n  --json\n```\n\nOutput is one of `evolve` \u002F `forge` \u002F `ambiguous` plus per-candidate fitness scores. To run the full pipeline with auto-routing, pass `--prefer-evolve` to `forge`:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fskill_forge.py forge \\\n  --output .\u002Fgenerated --install plan --prefer-evolve --json\n```\n\nProfile mismatch is a hard gate (fitness 0). The replay non-regression gate downstream catches any mis-routed evolution that would degrade the installed baseline.\n\n### Choose\n\nOnly create a skill when the pattern is:\n\n- recurring\n- broad enough to reuse\n- structured enough to document\n- more stable than a one-off prompt\n\nIf the need is too narrow, keep it as a note or workflow rule instead.\n\n### Scaffold\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fgenerate_skill_scaffold.py \\\n  --skill-name my-skill \\\n  --output .\u002Fgenerated \\\n  --goal \"What the skill should achieve.\" \\\n  --triggers \"keyword1, keyword2\" \\\n  --template auto\n```\n\n### Validate\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fvalidate_skill_candidate.py .\u002Fgenerated\u002Fmy-skill\n```\n\n### Propose Installation\n\nPlan only (safe to run anywhere, no Telegram, no secrets):\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fpropose_skill_install.py .\u002Fgenerated\u002Fmy-skill --json\n```\n\n`--apply` is gated by a signed approval token. Direct invocation without a token is blocked. Use the full pipeline (`forge_pipeline.py --install telegram`) for the normal install path, or call `telegram_approval.py` first and pass its `approval_token` to `propose_skill_install.py --apply --approval-token \u003Ctoken>`. The token is HMAC-bound to the skill name, target path, install method, source path, and a hash of the source directory's contents, so any post-approval edit invalidates it. Token issuance and install apply both require the source to be an existing skill directory containing `SKILL.md`.\n\n### Record Feedback\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Frecord_skill_feedback.py \\\n  --skill my-skill \\\n  --agent-name StudyAgent \\\n  --rating negative \\\n  --feedback \"触发词: literature review. The skill should handle literature review planning better.\" \\\n  --json\n```\n\n### Propose Evolution\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fevolve_skill_pipeline.py \\\n  --skill my-skill \\\n  --output .\u002Fgenerated-updates \\\n  --install plan \\\n  --replay hidden \\\n  --min-replay-improvement 0 \\\n  --agent-name StudyAgent \\\n  --json\n```\n\nWhen an installed copy of `my-skill` exists under `--target-root`, the candidate and the installed baseline are scored against the same redacted replay cases. The pipeline blocks the install when `candidate_score - baseline_score \u003C --min-replay-improvement` (default `0`, i.e. no regression). Pass `--min-replay-improvement -100` to disable the regression check.\n\n### Replay Evaluation\n\nRun:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Freplay\u002Fcollect_replay_cases.py \\\n  --feedback-file ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002Fskill-feedback.jsonl \\\n  --skill my-skill \\\n  --json\n\npython3 {baseDir}\u002Fscripts\u002Freplay\u002Frun_replay_eval.py \\\n  --skill-dir .\u002Fgenerated-updates\u002Fmy-skill \\\n  --skill my-skill \\\n  --json\n```\n\n### Nightly Review\n\nSomnia is now packaged as its own skill for scheduled maintenance. These compatibility commands remain available from Skill Forge:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fnightly_skill_review.py \\\n  --scope managed \\\n  --propose-updates \\\n  --replay hidden \\\n  --update-install plan \\\n  --json\n```\n\nInstall a macOS daily sleep-hour schedule, defaulting to 03:00 local time:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fschedule_nightly_review.py \\\n  --hour 3 \\\n  --minute 0 \\\n  --scope managed \\\n  --propose-updates \\\n  --update-install plan \\\n  --apply \\\n  --json\n```\n\nUse `--telegram-report` with `--env-file ~\u002F.openclaw\u002Fskill-forge.env` when scheduled runs should send a summary report to Telegram. The env file should define `TELEGRAM_BOT_TOKEN` and `TELEGRAM_CHAT_ID`.\n\nUninstall or rollback a generated skill. Like install, `--uninstall --apply` requires a signed approval token issued by `telegram_approval.py` for the same skill, target, and method. Plan-only (no `--apply`) works without a token and just prints what would happen:\n\n```bash\n# Plan (no token, no mutation)\npython3 {baseDir}\u002Fscripts\u002Fpropose_skill_install.py my-skill --uninstall --json\n\n# Apply (requires a fresh approval token bound to the same skill\u002Ftarget\u002Fmethod)\npython3 {baseDir}\u002Fscripts\u002Finstall\u002Ftelegram_approval.py \\\n  --skill my-skill \\\n  --profile workflow \\\n  --validation-score 100 --validation-grade milestone \\\n  --evaluation-score 100 --evaluation-passed \\\n  --target \"$HOME\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fmy-skill\" \\\n  --method symlink \\\n  --json > approval.json\n\nAPPROVAL_TOKEN=\"$(python3 -c 'import json; print(json.load(open(\"approval.json\"))[\"approval_token\"])')\"\n\npython3 {baseDir}\u002Fscripts\u002Fpropose_skill_install.py my-skill \\\n  --uninstall --apply \\\n  --approval-token \"$APPROVAL_TOKEN\" \\\n  --restore-backup \\\n  --json\n```\n\n## Full Pipeline\n\nFor one-shot operation:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fforge_pipeline.py \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FFEATURE_REQUESTS.md \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FERRORS.md \\\n  --output .\u002Fgenerated \\\n  --eval hidden \\\n  --json\n```\n\nAsk through Telegram before installing:\n\n```bash\nexport TELEGRAM_BOT_TOKEN=\"...\"\nexport TELEGRAM_CHAT_ID=\"...\"\n\npython3 {baseDir}\u002Fscripts\u002Fforge_pipeline.py \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FFEATURE_REQUESTS.md \\\n  --source ~\u002F.openclaw\u002Fworkspace\u002F.learnings\u002FERRORS.md \\\n  --output .\u002Fgenerated \\\n  --install telegram \\\n  --agent-name StudyAgent \\\n  --json\n```\n\n## Decision rules\n\n- Prefer creating a skill over a new agent when the new capability is narrow.\n- Prefer a new agent over a skill when the work needs a distinct role, tools, and long-term memory boundary.\n- Prefer `references\u002F` when the skill mainly teaches structure and judgment.\n- Prefer `scripts\u002F` when the same code would otherwise be rewritten repeatedly.\n- Default to `--install plan`; use `--install telegram` for any mutation.\n- Treat `--install ask` and `--install auto` as blocked compatibility aliases.\n- Do not call `propose_skill_install.py --apply` directly; `--apply` requires a signed approval token issued by `telegram_approval.py` and bound to the skill name, target, method, source path, and source content hash. The HMAC secret is `SKILL_FORGE_APPROVAL_SECRET` if set, otherwise derived from the bot token. Tokens default to a 30-minute TTL.\n- A dry-run approval token (`mode=dry-run`) cannot mutate state. The pipeline reports `install_status=dry-run-blocked` and only `--allow-dry-run-install` on the install script lets it through, in which case the audit field is `approved_by=dry-run`.\n- Keep `--eval hidden` for user-facing flows so simulated checks and prompts are not exposed.\n- Use `--agent-name` before installation when a specific agent will receive the skill.\n- Never hard-code Telegram tokens; discover them from OpenClaw\u002Fenv files or environment variables.\n- Redact feedback text before storing it.\n- Treat feedback-driven changes as update candidates, not direct edits to installed skills.\n- Install evolved skills only after validation, hidden evaluation, authorization, and approval.\n- Replay runs as a non-regression gate during evolution: baseline (currently installed) and candidate are scored against the same redacted cases, and the candidate is blocked if `score - baseline \u003C --min-replay-improvement` (default `0`). Use `--min-replay-improvement -100` to disable. When no installed baseline exists the gate falls back to a single-skill coverage check.\n- Scheduled nightly review may propose updates, but install changes still require Telegram approval.\n- Nightly reports should show only health summaries, not hidden evaluation prompts or simulated checks.\n- Default nightly review scope is `managed`; use `--scope all` only for explicit full inventory audits.\n\n## Output Contract\n\nThe skill-forge output should include:\n\n- detected opportunity name\n- recommended template profile\n- generated candidate path\n- validation score and grade\n- install status\n- approval status when Telegram confirmation is used\n- nightly review report path when running scheduled review\n- install plan\n- review warnings, if any\n\n## Quality Gates\n\nBefore proposing installation, confirm:\n\n- the skill name is concrete and reusable\n- the description has clear trigger conditions\n- the generated structure matches the intended job\n- the candidate improves a real recurring workflow\n- validation score is at least 70\n- `grade=milestone` is preferred before sharing externally\n- installation threshold is at least 85 unless the user explicitly chooses otherwise\n- hidden smoke evaluation passes\n- target Agent profile policy allows the generated skill profile\n- Telegram approval is available before applying install or uninstall changes\n- feedback-derived updates are reviewed as candidates before replacing an installed skill\n- replay evaluation passes when replay cases exist\n- nightly review reports are written before any update proposal is installed\n- scheduled automation uses explicit launchd configuration and can be uninstalled\n\nRead `references\u002Fskill-quality-rubric.md` when evaluating a draft.\n\n## Resources\n\nReferences:\n- `references\u002Fheuristics.md`\n- `references\u002Fskill-quality-rubric.md`\n- `references\u002Fmilestone-architecture.md`\n- `references\u002Fforge-console.md`\n\nScripts:\n- `scripts\u002Fdetect_skill_opportunities.py`\n- `scripts\u002Fevaluate_skill_candidate.py`\n- `scripts\u002Fgenerate_skill_scaffold.py`\n- `scripts\u002Fvalidate_skill_candidate.py`\n- `scripts\u002Fforge_pipeline.py`\n- `scripts\u002Fskill_forge.py`\n- `scripts\u002Finstall\u002Fpropose_skill_install.py`\n- `scripts\u002Finstall\u002Ftelegram_approval.py`\n- `scripts\u002Fevolve\u002Fevolve_skill_pipeline.py`\n- `scripts\u002Fevolve\u002Fpropose_skill_update.py`\n- `scripts\u002Fevolve\u002Frecord_skill_feedback.py`\n- `scripts\u002Freplay\u002Fcollect_replay_cases.py`\n- `scripts\u002Freplay\u002Fcompare_replay_outputs.py`\n- `scripts\u002Freplay\u002Fredact_replay_case.py`\n- `scripts\u002Freplay\u002Freplay_report.py`\n- `scripts\u002Freplay\u002Frun_replay_eval.py`\n- `scripts\u002Fsomnia\u002Fnightly_skill_review.py`\n- `scripts\u002Fsomnia\u002Fschedule_nightly_review.py`\n\nCompatibility wrappers:\n- `scripts\u002Fpropose_skill_install.py`\n- `scripts\u002Ftelegram_approval.py`\n- `scripts\u002Fevolve_skill_pipeline.py`\n- `scripts\u002Fpropose_skill_update.py`\n- `scripts\u002Frecord_skill_feedback.py`\n- `scripts\u002Fnightly_skill_review.py`\n- `scripts\u002Fschedule_nightly_review.py`\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fskills-forge",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill skill-forge",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill skill-forge",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill skill-forge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fskills-forge\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]