# Create Jinx

> Create 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.

- Skill name: `create_jinx`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/NPC-Worldwide/npcpy/blob/HEAD/skills/create_jinx/SKILL.md
- Repository: NPC-Worldwide/npcpy (1,430 GitHub stars when collected)

## SKILL.md

# 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_name`
- `description`
- `inputs_spec` (default: `'[]'`)
- `python_code`
- `target_subdir` (default: `'lib'`)

## Steps

- `write_jinx` → [`write_jinx.py`](./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"}
```

---

Source: https://www.openparable.com/skill/development/create-jinx (OpenParable). Cite the canonical URL above.
