← Back to Skills Marketplace
aiweline

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

by Aiweline · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
40
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install core-command-codegen
Description
Framework core engineer skill for CLI commands, code generation standards, PHP 8.4 compatibility, and framework-safe scaffolding.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install core-command-codegen
  3. After installation, invoke the skill by name or use /core-command-codegen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Publish_WelineFramework_Multica_role_skills
Metadata
Slug core-command-codegen
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments