arcane

Expert guidance for building and maintaining projects with the Arcane Microframework. Use when creating new projects, defining routes, managing context-aware helpers, automatic assets, or handling localization.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "arcane" with this command: npx skills add capachow/arcane

Arcane Microframework

Arcane is a tiny (12kb) single-file PHP microframework where location is logic. It uses filesystem-based routing and context-aware autoloading.

Core Functions

  • env(key, default): Environment variables.
  • path(locator, actual): Unified tool for generating URLs or absolute server paths.
  • relay(name, mixed): Yield data (or HTML via callable) from page to layout.
  • scribe(string|array, replace): Translation/localization.

Project Structure

/
├── index.php        (The framework)
├── .env             (Configuration)
├── helpers/         (Context-aware logic)
├── layouts/         (Wrappers)
├── locales/         (Translations)
├── pages/           (Filesystem routes)
├── scripts/         (Auto-injected JS)
├── styles/          (Auto-injected CSS)
└── images/          (Assets)

Workflows

1. Routing & Dynamic Segments

Files in pages/ map to URLs. For dynamic segments (e.g., /blog/my-post/), use define('ROUTES', [...]) in the closest physical file (e.g., pages/blog.php).

2. Layouts & Data

Use define('LAYOUT', 'name') in a page to wrap it in layouts/name.php. Use relay() to pass data like page titles.

3. Context-Aware Helpers

Helpers in helpers/ are automatically available as variables in pages. They cascade based on the directory structure, allowing section-specific overrides.

4. Automatic Assets

CSS/JS files in styles/ and scripts/ are auto-injected if they match the layout or page path. No manual <link> or <script> tags needed.


For detailed API references and advanced patterns, refer to DOCUMENTATION.md.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

Yield Farm Payment

Transform your outgoing payments into a yield-generating asset. Auto recover of all paid amounts through yield farming on Aave V3. This skill automates on-ch...

Registry SourceRecently Updated
Web3

ClawPay-Hedera

Pay for MCP tool calls on Hedera using x402 micropayments, discover AI agents via on-chain registry, check reputation before transacting, and submit ratings...

Registry SourceRecently Updated
1320Profile unavailable
Web3

Governance Inheritance

Hierarchical policy inheritance system for OpenClaw agents. Enables policies to be defined at organization, team, project, and session levels with automatic...

Registry SourceRecently Updated
1530Profile unavailable
Web3

oudated-noa

Citizen skill for the Nation of Agents — authenticate with your Ethereum wallet, communicate via Matrix, trade and collaborate with other AI agents.

Registry SourceRecently Updated
1250Profile unavailable