跳到正文
cccskills
免费在 GitHub 公开

axel-code-forge

Use when enforcing Axel's coding standards across any language for architecture, reuse, imports, and maintainability, plus React/Next.js-specific rules only where explicitly stated (for example useEffect and JSX handlers).

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Axel Code Forge

Purpose

Enforce Axel's coding conventions with focus on consistency, reuse, and maintainability. Apply React/Next.js rules only where explicitly marked.

Scope

  • General (any language): architecture, modularity, imports, constants, null safety, decomposition, reuse.
  • React/Next.js only: rules tied to React/Next APIs or JSX semantics, explicitly tagged.

When to Use

  • Any feature or bugfix where code quality matters
  • Refactors and file organization
  • Code review and quality hardening
  • UI implementation with design tokens

Non-Negotiable Rules

  1. [General] Use absolute imports only. Avoid relative imports in app code.
  2. [General] Avoid hardcoded values. Use constants, shared config, design tokens, or enums.
  3. [React/Next] Avoid inline functions in JSX handlers (onClick, onChange). Define stable handlers.
  4. [General] Never assume values exist. Guard nullable/optional values before use.
  5. [React/Next] Keep hooks focused. Avoid long useEffect and large state blobs.
  6. [General] No God components. Split large components into atomic, reusable units.
  7. [General/UI] Prefer project theme/color tokens over raw Tailwind palette classes.
  8. [General] Avoid comments by default. One concise English comment only for critical context.
  9. [General/UI] Keep SVGs outside feature pages. Place in icons folder or shared components.
  10. [General] Prioritize reusable components and utility functions.
  11. [General] Use feature-based separation (atomic split by concern).
  12. [General] Follow existing project patterns for shared primitives.
  13. [React/Next] Follow existing patterns for Redux and custom hooks.

Implementation Checklist

  • Imports are absolute and aligned with aliases
  • Literals extracted to constants when reused
  • JSX handlers reference named functions (React only)
  • Optional values guarded before dereference
  • Effects are single-purpose with clear deps (React only)
  • Component size controlled
  • Theme tokens used before generic colors
  • No unnecessary comments
  • SVGs externalized to icon system
  • Logic duplication reduced
  • Existing patterns respected

Preferred Refactor Direction

When touching complex files:

  1. Extract constants and mappings
  2. Extract row/item subcomponents
  3. Extract pure helper functions
  4. Reduce inline object/function creation in render
  5. Keep behavior identical unless requirements demand change

Auto-Update Protocol

HEFESTO manages this skill. User preferences evolve.

Detection Triggers

Detect when user teaches a preference:

  • Explicit: "siempre", "nunca", "preferimos", "regla:", "acordate"
  • Implicit: Correcting code with a pattern, repeating a preference
  • Review: "esto esta mal porque...", "mejor asi..."

Update Flow

1. HEFESTO detects preference pattern
2. Ask: "Agrego esto a axel-code-forge?"
3. If approved:
   a) Check for conflicts with existing rules
   b) If conflict: "Esto choca con regla X. Cual priorizamos?"
   c) If clear: Add to Non-Negotiable Rules
   d) Confirm: "Agregado: [rule summary]"
4. If rejected: Note in session, don't persist

Conflict Resolution

When new rule conflicts with existing:

HEFESTO: "La regla nueva 'always use ternaries' 
choca con la existente 'avoid nested ternaries'.
Cual priorizamos?

1. Keep existing, reject new
2. Replace existing with new
3. Merge: allow simple ternaries, avoid nested"

User: "3"

HEFESTO: "Actualizado:
- [General] Use simple ternaries. Avoid nested ternaries (use if/else)."

Rule Format for New Additions

X. [Scope] Rule description in imperative form.

Where:

  • X = next number in sequence
  • Scope = General | React/Next | General/UI
  • Description = clear, actionable statement

Example Updates

User says: "Nunca uses any, siempre unknown"

HEFESTO: "Agrego a axel-code-forge:
  14. [General] Never use `any`. Prefer `unknown` with type guards.
  
Dale?"

User corrects code: Changes arr.map(x => x.id) to arr.map((item) => item.id)

HEFESTO: "Noto que preferis parametros descriptivos en callbacks.
Agrego?
  15. [General] Use descriptive parameter names in callbacks (item, user, not x, i).
  
Dale?"

Validation

Before adding rule, HEFESTO checks:

  1. Not redundant with existing rule
  2. Not contradictory to existing rule
  3. Follows existing rule format
  4. Is actionable (not vague)

If validation fails, explain why and suggest alternative wording.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

2d-games

免费

2D game development principles. Sprites, tilemaps, physics, camera.

中文简介正在准备中。当前显示原文说明。

AxelMrak/ai52026年2月20日 更新

3d-games

免费

3D game development principles. Rendering, shaders, physics, cameras.

中文简介正在准备中。当前显示原文说明。

AxelMrak/ai52026年2月20日 更新

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.

中文简介正在准备中。当前显示原文说明。

AxelMrak/ai52026年2月20日 更新

Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.

中文简介正在准备中。当前显示原文说明。

AxelMrak/ai52026年2月20日 更新

This skill should be used when the user asks to "attack Active Directory", "exploit AD", "Kerberoasting", "DCSync", "pass-the-hash", "BloodHound enumeration", "Golden Ticket", "Silver Ticket", "AS-REP roasting", "NTLM relay", or needs guidance on Windows domain penetration testing.

中文简介正在准备中。当前显示原文说明。

AxelMrak/ai52026年2月20日 更新

Use when you need to address review or issue comments on an open GitHub Pull Request using the gh CLI.

中文简介正在准备中。当前显示原文说明。

AxelMrak/ai52026年2月20日 更新

查看 AxelMrak 的全部技能

报告此技能的问题