/install core-command-codegen
\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\rCLAUDE.md\rdev/ai/skills/create-framework-command/SKILL.md\rdev/ai/skills/code-generation-standards/SKILL.md\rdev/ai/skills/php84-performance/SKILL.md\rdev/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
- Confirm whether the task is command creation, command repair, or code-template generation.\r
- Check existing command patterns before introducing new framework APIs or signatures.\r
- Implement the command entry point and keep business logic in services.\r
- Register or refresh command metadata through the framework command upgrade flow.\r
- Apply code-generation guardrails, typing rules, and i18n rules to the produced code.\r
- Validate on the intended platform, especially when shell composition or Windows quoting is involved.\r
- 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:upgradeafter 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, orexit.\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:upgradewhen 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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install core-command-codegen - After installation, invoke the skill by name or use
/core-command-codegen - Provide required inputs per the skill's parameter spec and get structured output
What is 框架核心工程师 命令与代码生成?
Framework core engineer skill for CLI commands, code generation standards, PHP 8.4 compatibility, and framework-safe scaffolding. It is an AI Agent Skill for Claude Code / OpenClaw, with 40 downloads so far.
How do I install 框架核心工程师 命令与代码生成?
Run "/install core-command-codegen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 框架核心工程师 命令与代码生成 free?
Yes, 框架核心工程师 命令与代码生成 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 框架核心工程师 命令与代码生成 support?
框架核心工程师 命令与代码生成 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 框架核心工程师 命令与代码生成?
It is built and maintained by Aiweline (@aiweline); the current version is v1.0.0.