Agent skill

Generate Pi Task

by 1204244136 in 1204244136/MDA

根据 MaaFramework Pipeline 定义生成或更新 Project Interface 任务 JSON。用于创建、编辑或扩展 assets/tasks/ 下的任务文件,将 Pipeline 节点映射为用户可配置选项(switch/select/checkbox/input)并绑定 pipelineoverride。

MITAuto-check passed

Install Generate Pi Task

skills CLI
$ npx skills add 1204244136/MDA --skill generate-pi-task -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 1204244136/MDA generate-pi-task --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/generate-pi-task .claude/skills/generate-pi-task && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-pi-task
GitHub stars
119
Token cost
~1k tokens
SKILL.md length
260 words
Files
2 (incl. references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

根据 MaaFramework Pipeline 定义生成或更新 Project Interface 任务 JSON。用于创建、编辑或扩展 assets/tasks/ 下的任务文件,将 Pipeline 节点映射为用户可配置选项(switch/select/checkbox/input)并绑定 pipelineoverride。

  • Works in 6 steps: 读取规范文件 → 读取 Interface 上下文 → 确定目标文件 → …
  • SKILL.md covers 功能说明, 使用场景, 工作流程 and Locale 规则, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Generate Pi Task is an agent skill from 1204244136/MDA. 根据 MaaFramework Pipeline 定义生成或更新 Project Interface 任务 JSON。用于创建、编辑或扩展 assets/tasks/ 下的任务文件,将 Pipeline 节点映射为用户可配置选项(switch/select/checkbox/input)并绑定 pipelineoverride。

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/option-types.md`). Compatibility notes: Designed for Claude Code

The repository describes itself as: Nikke小助手 | Assistant For Goddess of Victory: Nikke. The licence is MIT.

Example prompts

  • “/generate-pi-task”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 读取规范文件
  2. 读取 Interface 上下文
  3. 确定目标文件
  4. 读取 Pipeline 文件
  5. 确定选项类型
  6. 生成任务 JSON

What it can do on your machine

Read from SKILL.md and the folder at commit 9fb9b48. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Generate Pi Task loads about 1k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 46 tokens; SKILL.md has 260 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from 1204244136/MDA at commit 9fb9b48, republished under its MIT licence (© 1204244136). 260 words, ~1,027 tokens.

Download SKILL.mdSave it as .claude/skills/generate-pi-task/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
generate-pi-task
description
根据 MaaFramework Pipeline 定义生成或更新 Project Interface 任务 JSON。用于创建、编辑或扩展 assets/tasks/ 下的任务文件,将 Pipeline 节点映射为用户可配置选项(switch/select/checkbox/input)并绑定 pipeline_override。
compatibility
Designed for Claude Code
license
MIT

MaaFramework Project Interface 任务生成

功能说明

  • 读取 Pipeline JSON 文件,识别可切换节点(通常是含 enabled 字段的节点)。
  • 分析节点关系,确定选项类型:switch、select、checkbox、input。
  • 生成或更新 assets/tasks/*.json,遵循 tools/schema/interface_import.schema.json。
  • 更新 assets/interface.json 的 import[]。
  • 补充 assets/locales/interface/ 下项目实际支持语言的 i18n 键。

使用场景

  • 为 Pipeline 创建新的 Project Interface 任务文件。
  • 向已有任务文件添加选项。
  • 把 Pipeline 的可配置节点暴露为用户可选配置。
  • 用户提到“生成任务”、“PI 任务”、“pipeline 选项”、“interface 任务”、“pipeline_override”。

工作流程

1. 读取规范文件

从当前项目读取:

  1. tools/schema/interface_import.schema.json — 任务文件 schema。
  2. tools/schema/interface.schema.json — 主 PI schema。
  3. tools/schema/pipeline.schema.json — Pipeline 节点 schema。

如果 schema 路径不同,先按当前项目实际结构查找,不要硬编码。

2. 读取 Interface 上下文
  1. 读取 assets/interface.json。
  2. 读取 import[] 中已有任务文件,收集已有任务名和 option key,避免冲突。
  3. 记录 group[] 定义,确认新任务应归属哪个分组。
  4. 检查 assets/locales/interface/ 实际有哪些语言文件;只维护项目已经存在的语言。
3. 确定目标文件
  1. 当前活动文件在 assets/tasks/ 且已被 interface.json import → 编辑该文件。
  2. 当前活动文件是 Pipeline JSON → 从 assets/resource/pipeline/{PipelineName}/ 推导 pipeline 名称,检查 assets/tasks/{PipelineName}.json 是否存在。
  3. 无上下文 → 询问用户要为哪个 pipeline 生成。
  4. 新建任务文件时,同步在 assets/interface.json 的 import[] 中添加相对路径,例如 tasks/MyTask.json。
4. 读取 Pipeline 文件
  1. 读取 assets/resource/pipeline/{PipelineName}/ 下相关 .json 文件。
  2. 提取每个节点的:节点名、enabled、next[]、desc、recognition、action。
  3. 构建节点图:通过 next[] 建立父→子映射,识别兄弟节点和嵌套选项。
  4. 如果 Pipeline 跨目录引用公共节点,只把当前任务应由用户配置的业务节点纳入选项。
5. 确定选项类型

详见 选项类型决策参考。快速规则:

  • 单个含 enabled 的独立节点 → switch。
  • 同一父节点下互斥的 enabled 子节点 → select。
  • 多个可同时启用的独立项目 → checkbox。
  • 选择某个 case 后才显示的子选项 → 嵌套 case.option[]。
  • 可配置数值/文本参数 → input,配合 pipeline_type 和 「FieldName」 引用。
6. 生成任务 JSON

严格遵循 interface_import.schema.json。典型结构:

json
{
    "task": [
        {
            "name": "PipelineName",
            "label": "$task.PipelineName.label",
            "entry": "PipelineName",
            "description": "$task.PipelineName.description",
            "option": ["OptionKey"],
            "group": ["daily"]
        }
    ],
    "option": {
        "OptionKey": {
            "type": "switch",
            "label": "$option.OptionKey.label",
            "cases": [
                {
                    "name": "Yes",
                    "pipeline_override": {
                        "TargetNode": {"enabled": true}
                    }
                },
                {
                    "name": "No",
                    "pipeline_override": {
                        "TargetNode": {"enabled": false}
                    }
                }
            ]
        }
    }
}

Locale 规则

向 assets/locales/interface/ 下项目实际存在的语言文件补充键:

  • task.{Name}.label
  • task.{Name}.description
  • option.{OptionKey}.label
  • option.{OptionKey}.{CaseName} 或项目 schema 要求的 case label key

原则:

  • 用户可见字符串使用 $ i18n key,不在任务文件中硬编码显示文案。
  • 中文描述可优先参考 Pipeline 节点的 desc。
  • 其它语言无法确定官方译名时,给出合理占位并在回复中请用户确认。
  • 只维护当前项目已有 locale 文件,不要凭空新增语言文件,除非用户明确要求。

注意事项

  • interface_import.schema.json 才是任务文件 schema,不是 interface.schema.json。
  • entry 必须与 Pipeline 入口节点名完全一致,区分大小写。
  • interface.json 中的 import 路径通常相对 assets/interface.json,例如 tasks/MyTask.json。
  • enabled: false 表示节点默认关闭,选项通常让用户将其开启。
  • enabled: true 表示节点默认开启,选项通常让用户将其关闭。
  • switch 的 cases 通常为 Yes 和 No 两个。
  • select 的每个 case 需要启用自身节点,同时禁用同组互斥兄弟节点。
  • checkbox 的每个 case 通常只启用自身节点,不禁用兄弟节点。
  • 若项目已有同类任务采用不同顺序或 default_case,优先保持项目一致性。

验证清单

  • JSON 语法合法。
  • task[].option[] 的 key 都在 option 对象中存在。
  • case.option[] 的嵌套引用都能解析。
  • 所有 pipeline_override 目标节点在 Pipeline 文件中存在。
  • 新任务文件已加入 assets/interface.json 的 import[]。
  • 所有 $... locale key 在项目已有 interface locale 文件中存在。
  • 选项默认值与 Pipeline enabled 默认状态一致。

© 1204244136, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .claude/skills/generate-pi-task of 1204244136/MDA.

  • SKILL.md
  • references/option-types.md

Open the folder on GitHubat commit 9fb9b48

Compare with similar skills

Generate Pi Task next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Pi Task compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Pi Task this skill1204244136/MDA119—~1kAutomated safety check: PassMIT
Network Interface Healthaffaan-m/ECC275k1 repos~1.4kAutomated safety check: PassMIT
Make Interfaces Feel Betteraffaan-m/ECC275k1 repos~1.2kAutomated safety check: PassMIT
Sci Fi Interfacesickn33/agentic-awesome-skills47k1 repos~3.1kAutomated safety check: PassMIT
Network Interface Healthaffaan-m/ECC275k—~1kAutomated safety check: PassMIT
Better Interfacetrycompai/crm11k—~2kAutomated safety check: PassMIT

Similar skills

  • Diagnose interface errors, drops, CRCs, duplex mismatches, flapping, speed negotiation issues, and counter trends on routers, switches, and Linux hosts.

    275k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Apply concrete design-engineering details that make interfaces feel polished.

    275k GitHub starsUsed in 1 repo~1.2k tokens
    Frontend & DesignAuto-check passed
  • Sci Fi Interface

    sickn33/agentic-awesome-skills

    Web and App implementation guide for Sci-Fi Interface Design.

    47k GitHub starsUsed in 1 repo~3.1k tokens
    MobileAuto-check passed
  • ルーター、スイッチ、Linuxホスト上のインターフェースエラー、ドロップ、CRC、デュプレックス不一致、フラッピング、速度ネゴシエーション問題、カウンタートレンドを診断する。

    275k GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Better Interface

    trycompai/crm

    User-invoked, cross-discipline interface review that coordinates better-accessibility, better-layout, better-writing, better-typography, better-colors, and better-ui.

    11k GitHub stars~2k tokensUpdated 27 days ago
    Frontend & DesignAuto-check passed
  • Make Interfaces Feel Better

    samuelclay/NewsBlur

    Design engineering principles for making interfaces feel polished.

    7.6k GitHub starsUsed in 10 repos~1.5k tokens
    Frontend & DesignAuto-check passed

More from 1204244136/MDA

All 9 skills in this repo
  • Dmp Analysis

    1204244136/MDA

    分析 Windows 崩溃转储文件(.dmp),诊断 MaaFramework / MXU 项目及其依赖项的崩溃。用于 issue 日志包或附件中发现 .dmp 文件,或用户要求分析 DMP / 崩溃转储时。

    119 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Go Service Guide

    1204244136/MDA

    MaaFramework Go Agent / go-service 编写指南。用于编写、修改或审查 agent/go-service/ 下的 Go 自定义识别器、动作、EventSink,或了解 MaaFramework Go Agent 的注册、日志、目录组织和参数解析模式。

    119 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Maa Logging

    1204244136/MDA

    MaaFramework C++ 日志宏用法指南。用于写 C++ MaaFramework 扩展、Custom 组件或工具代码时使用 LogInfo/LogError/LogWarn/LogDebug/LogTrace、VAR、容器输出和自定义类型日志。

    119 GitHub stars~790 tokensUpdated 3 days ago
    Auto-check passed
  • 分析 MDA 公开 Issue、日志包或本地日志。用于 https://github.com/1204244136/MDA/issues/...、1234、MDA 日志压缩包、识别失败、任务卡死、控制器差异、Pipeline/Agent/MXU 问题。会从…

    119 GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Mda Project Guide

    1204244136/MDA

    MDA 项目专属开发指南。用于在 MDA 中编写或审查 MaaFramework Pipeline、Project Interface 任务、locale、go-service 组件时补充项目结构、业务域、命名习惯和现有任务选项示例。与通用 pipeline-guide、pipeline-debug、generate-pi-task、go-service-guide 配合使用。

    119 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Meojson

    1204244136/MDA

    meojson C++ JSON 库使用指南。用于 MaaFramework C++ 项目中的 JSON 解析、序列化、MEOJSONIZATION、json::value 操作、ext::jsonization 自定义类型支持,以及 Custom 参数解析。

    119 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed

Questions about Generate Pi Task

What does Generate Pi Task do?

根据 MaaFramework Pipeline 定义生成或更新 Project Interface 任务 JSON。用于创建、编辑或扩展 assets/tasks/ 下的任务文件,将 Pipeline 节点映射为用户可配置选项(switch/select/checkbox/input)并绑定 pipelineoverride。. Generate Pi Task is an agent skill from 1204244136/MDA.

How do I install Generate Pi Task in Claude Code?

Run `npx skills add 1204244136/MDA --skill generate-pi-task -a claude-code`. Or copy the skill folder (.claude/skills/generate-pi-task in 1204244136/MDA) into .claude/skills/generate-pi-task in your project. Claude Code loads it when a task matches its description.

How do I install Generate Pi Task in Codex?

Run `npx skills add 1204244136/MDA --skill generate-pi-task -a codex`. Or copy the skill folder (.claude/skills/generate-pi-task in 1204244136/MDA) into .agents/skills/generate-pi-task in your project. Codex loads it when a task matches its description.

Can I use Generate Pi Task in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 1204244136/MDA --skill generate-pi-task -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-pi-task, .gemini/skills/generate-pi-task, .github/skills/generate-pi-task and .opencode/skills/generate-pi-task in your project.

What does Generate Pi Task need to run?

SKILL.md names no scripts, command-line tools or credentials: Generate Pi Task is instructions for the agent only. Compatibility (from SKILL.md): Designed for Claude Code.

Does Generate Pi Task access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Generate Pi Task safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Generate Pi Task use?

Generate Pi Task is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Pi Task use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Generate Pi Task?

Skills that share tags, products or a category with Generate Pi Task: Network Interface Health (affaan-m/ECC, 275k stars), Make Interfaces Feel Better (affaan-m/ECC, 275k stars), Sci Fi Interface (sickn33/agentic-awesome-skills, 47k stars) and Network Interface Health (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Pi Task?

1204244136 (a GitHub user) maintains it in 1204244136/MDA, which has 119 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 5, 2026.

Source: 1204244136/MDA on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.