← 返回
未分类 中文

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

Framework core engineer skill for CLI commands, code generation standards, PHP 8.4 compatibility, and framework-safe scaffolding.
框架核心工程师技能,涵盖 CLI 命令、代码生成标准、PHP 8.4 兼容性以及框架安全的脚手架。
aiweline aiweline 来源
未分类 clawhub v1.1.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 300
下载
💾 0
安装
2
版本
#latest

概述

Role

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.

When To Use

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

Source Material

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

Responsibilities

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

Workflow

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

Weline Rules

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

Inputs Required

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

Expected Output

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

Validation

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

Constraints

  • Do not leave command registration stale after implementation.
  • Do not invent helper APIs that are not present in the repository.
  • Do not put complex business rules directly inside console execute methods.
  • Do not build fragile Windows command strings without explicit quoting discipline.

Shared Collaboration Contract

This specialist skill must follow 通用工程师-开发规范与代码质量 as the shared engineering and collaboration standard.

Before and during work:

  • Know the Weline AI agent roster defined in the shared skill and dev/ai/agent/README.md.
  • Keep work inside this specialist's ownership boundary.
  • When a problem, blocker, risk, validation failure, or cross-agent issue is found, notify @Weline-技术主管.
  • Do not silently expand scope to fix another agent's area.
  • Include collaboration status in the final report.

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-09 04:04 安全 安全
  • v1.0.0
    2026-05-08 03:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

安全权限工程师 会话配置与数据保护

aiweline
安全工程师技能:会话配置、区域隔离、敏感状态处理及数据保护边界。
★ 0 📥 521
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,250
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,208