← 返回 Skills 市场
aiweline

框架核心工程师 命令与代码生成

作者 Aiweline · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
40
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install core-command-codegen
功能描述
Framework core engineer skill for CLI commands, code generation standards, PHP 8.4 compatibility, and framework-safe scaffolding.
使用说明 (SKILL.md)

\r \r

Role\r

\r This skill owns framework-safe command creation, code generation quality, and PHP compatibility rules for generated or scaffolded code. It keeps command entry points thin and ensures generated code follows Weline conventions instead of generic PHP habits.\r \r

When To Use\r

\r

  • Use for CLI commands, console registration, scaffolding, code templates, or repository-wide code-generation rules.\r
  • Use for keywords such as command, console, generator, scaffold, command:upgrade, strict typing, PHP 8.4, and Windows command composition.\r
  • Use when implementation work introduces new command-line entry points or reusable code templates.\r \r

Source Material\r

\r

  • AI-ENTRY.md\r
  • CLAUDE.md\r
  • dev/ai/skills/create-framework-command/SKILL.md\r
  • dev/ai/skills/code-generation-standards/SKILL.md\r
  • dev/ai/skills/php84-performance/SKILL.md\r
  • dev/ai/skills/windows-command-quoting/SKILL.md\r \r

Responsibilities\r

\r

  • Build commands that orchestrate work cleanly without burying business logic inside console handlers.\r
  • Keep generated code aligned with Weline object access, i18n, and testability expectations.\r
  • Apply PHP 8.4-safe null handling and type declarations where appropriate.\r
  • Prevent command-line quoting errors on Windows-sensitive execution paths.\r \r

Workflow\r

\r

  1. Confirm whether the task is command creation, command repair, or code-template generation.\r
  2. Check existing command patterns before introducing new framework APIs or signatures.\r
  3. Implement the command entry point and keep business logic in services.\r
  4. Register or refresh command metadata through the framework command upgrade flow.\r
  5. Apply code-generation guardrails, typing rules, and i18n rules to the produced code.\r
  6. Validate on the intended platform, especially when shell composition or Windows quoting is involved.\r
  7. Report command usage, dependencies, and any environment assumptions.\r \r

Weline Rules\r

\r

  • Do not edit generated/ directly.\r
  • Run php bin/w command:upgrade after creating or changing command registration.\r
  • Do not hardcode user-facing text; use i18n-aware patterns.\r
  • Do not use declare(strict_types=1) inside .phtml.\r
  • In WLS-sensitive code, do not use sleep, die, or exit.\r \r

Inputs Required\r

\r

  • Command purpose and expected inputs or flags.\r
  • Owning module and related service layer.\r
  • Target environment, including Windows-specific command behavior if relevant.\r
  • Validation path for the command and any generated files.\r \r

Expected Output\r

\r

  • A command or generated-code change that follows Weline conventions.\r
  • Registration and execution validation evidence.\r
  • Notes about platform assumptions, quoting safety, and affected services.\r \r

Validation\r

\r

  • Run php bin/w command:upgrade when command registration changes.\r
  • Run the new or updated command with a focused scenario.\r
  • Check for PHP 8.4-safe null and typing behavior in changed code.\r
  • Check that command handlers do not absorb domain logic that belongs in services.\r \r

Constraints\r

\r

  • Do not leave command registration stale after implementation.\r
  • Do not invent helper APIs that are not present in the repository.\r
  • Do not put complex business rules directly inside console execute methods.\r
  • Do not build fragile Windows command strings without explicit quoting discipline.\r \r
安全使用建议
This looks safe for its stated purpose. Before installing, understand that it may guide the agent to generate or modify framework code and run project-local PHP commands, so use version control and review changes before committing them.
功能分析
Type: OpenClaw Skill Name: core-command-codegen Version: 1.0.0 The skill bundle provides instructions for an AI agent to assist with PHP framework development, specifically focusing on CLI command generation and PHP 8.4 compatibility for the 'Weline' framework. It includes safety-oriented guidelines such as proper command quoting for Windows and adherence to framework-specific coding standards. No malicious patterns or high-risk vulnerabilities were identified in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The stated purpose, workflow, and expected outputs all align around Weline framework command creation, scaffolding, PHP 8.4 compatibility, and code-generation conventions.
Instruction Scope
The skill instructs the agent to run framework CLI validation and registration commands, which is expected for this purpose but should be done in the intended project repository.
Install Mechanism
There is no install specification and no code files; the artifact is instruction-only.
Credentials
No credentials, environment variables, required binaries, network access, or broad filesystem indexing are declared.
Persistence & Privilege
The skill does not define background services, persistence mechanisms, credential use, or privilege escalation; any persistent effects are normal code or command-registration changes in the user's project.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install core-command-codegen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /core-command-codegen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Publish_WelineFramework_Multica_role_skills
元数据
Slug core-command-codegen
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

框架核心工程师 命令与代码生成 是什么?

Framework core engineer skill for CLI commands, code generation standards, PHP 8.4 compatibility, and framework-safe scaffolding. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。

如何安装 框架核心工程师 命令与代码生成?

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

框架核心工程师 命令与代码生成 是免费的吗?

是的,框架核心工程师 命令与代码生成 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

框架核心工程师 命令与代码生成 支持哪些平台?

框架核心工程师 命令与代码生成 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 框架核心工程师 命令与代码生成?

由 Aiweline(@aiweline)开发并维护,当前版本 v1.0.0。

💬 留言讨论