Create Jinx
Developmentcreate_jinxCreate Jinx is an Agent Skill for development published in the NPC-Worldwide/npcpy repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Write a new .jinx file from inputs (name, description, inputs spec as JSON list of strings, python body). Agents use this mid-task to crystallize a repeated block of code into a reusable jinx. The jinx is written to the team's jinxes/lib dir by default and registered with the running team so it is immediately callable without a restart.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/NPC-Worldwide/npcpy/blob/HEAD/skills/create_jinx/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/create-jinx, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
create_jinx
Write a new .jinx file from inputs (name, description, inputs spec as JSON list of strings, python body). Agents use this mid-task to crystallize a repeated block of code into a reusable jinx. The jinx is written to the team's jinxes/lib dir by default and registered with the running team so it is immediately callable without a restart.
Inputs
jinx_namedescriptioninputs_spec(default:'[]')python_codetarget_subdir(default:'lib')
Steps
write_jinx→write_jinx.py
Usage
/run_jinx jinx_ref=create_jinx input_values={"jinx_name": "<value>", "description": "<value>", "inputs_spec": "[]", "python_code": "<value>", "target_subdir": "lib"}