Cmajor external

From danielraffel/pulp · View interactive version

Cmajor external is an AI agent skill from the GitHub repository danielraffel/pulp. Use Pulp's MIT-safe Cmajor support lane via source-owned patches, an external `cmaj` toolchain, and explicit generated-artifact workflows.

How to use this skill

Skill file

Cmajor External Toolchain

Use this skill when a task involves Pulp's current Cmajor support lane.

Truthful Position

Pulp supports Cmajor as an external toolchain, not as a vendored runtime.

Supported now:

Not supported by this skill:

Core Files

Recommended Workflow

1. Validate the example or patch layout first

python3 tools/scripts/cmajor_external.py doctor \
  --patch examples/cmajor-gain/CmajorGain.cmajorpatch

Use --require-tool when the next step truly depends on a real cmaj.

2. Keep `cmaj` external

Preferred resolution order:

Do not turn the upstream Cmajor runtime/toolchain into a bundled dependency of

Pulp unless the repo's license policy changes.

3. Generate artifacts explicitly

python3 tools/scripts/cmajor_external.py generate \
  --patch examples/cmajor-gain/CmajorGain.cmajorpatch \
  --target cpp \
  --output /tmp/CmajorGain.cpp

Pass through target-specific args with repeated --arg flags.

4. Keep docs truthful

When editing this lane, keep these in sync:

What To Check

For the current Cmajor lane, verify:

Boundaries

This skill is for the MIT-safe external lane only.

If a user wants true runtime embedding:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.