ChanMeng666

New Element — Development skill for Claude Code

Development community

Add a new ArchLang element via the registry convention.

How to install New Element

Installs to ~/.claude/commands/chanmeng666-archlang-new-element.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ChanMeng666/archlang/HEAD/.claude/commands/new-element.md -o ~/.claude/commands/chanmeng666-archlang-new-element.md

Restart Claude Code, or start a new session, for it to be picked up.

What New Element does


description: Add a new ArchLang element via the registry convention

Add a new element

Elements are added through the registry, never a `switch`. Dispatch (parse / resolve / render) goes through `src/elements/defs.ts`.

Steps

  1. **Create `src/elements/.ts`** exporting an `ElementDef` (follow an existing module in `src/elements/` as the template — e.g. a simple leaf element).

  2. **Register it in `src/elements/defs.ts`.** Add it to the registry so parse, resolve, and re

Alternatives in Development

Full documentation available on GitHub

View Source Repository