360 Secure SkillHub
360 安全技能中心

Subskill Generation Rule

该 Skill 以规则文档形式规定子技能生成时的文件组织方式:推荐将结果产物放入 data/,将新功能脚本放入 subskills/<feature>/,每个功能独立目录,并按需在功能目录内添加 SKILL.md,以保持主技能根目录整洁。它仅提供约定,不包含自动执行脚本。

kenera
kenera
热度 81.68
最近更新 2026-05-11 16:51:55
分类:开发依赖:纯提示词应用场景:工作流 / 模板 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add subskill-generation-rule
Metadata
name
subskill-generation-rule
description
Define and enforce project orgnization rules for generating subskills. put generated recommendation outputs under data/, place new feature scripts under subskills/<feature>/, and optionally add SKILL.md inside each feature folder to keep main skill root clean.

Subskill Generate Rule

Apply these rules for future updates:

  1. Store newly generated recommendation/result artifacts in data/.
  2. Place newly generated code scripts in subskills/<feature>/.
  3. Use one folder per feature under subskills/.
  4. Add SKILL.md inside the feature folder when behavior/usage needs instructions.
  5. Avoid adding one-off scripts and generated files in the main skill root.

Recommended layout:

<skill>/
  SKILL.md
  config.json
  data/
  subskills/
    <feature-a>/
      SKILL.md
      *.py
    <feature-b>/
      SKILL.md
      *.py

When to Use

  • Creating new subskills
  • Organizing existing features
  • Enforcing file placement conventions
  • Keeping skill root clean