Use when creating new conexus plugin skills, editing existing skills, verifying skill quality before committing, or promoting a memory file into a skill, script or hook
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Writing Nx Skills?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hellblazer-writing-nx-skills)
---
name: writing-nx-skills
description: Use when creating new conexus plugin skills, editing existing skills, verifying skill quality before committing, or promoting a memory file into a skill, script or hook
effort: low
---
# Writing Conexus Skills
## Overview
Guide for authoring skills in the conexus Claude Code plugin. Skills are reference guides for proven techniques, patterns, or tools that help future Claude instances find and apply effective approaches.
**Methodology:** TDD-for-documentation — write pressure scenarios (test cases), verify baseline behavior without the skill, then write the skill and verify compliance.
## Skill Conventions
### Frontmatter
Three fields. Max 1024 characters total:
```yaml
---
name: skill-name-with-hyphens
description: Use when [specific triggering conditions]
effort: low|medium|high
---
```
- `name`: Letters, numbers, hyphens only
- `description`: MUST start with "Use when". Describe triggering conditions, NEVER summarize workflow.
- `effort`: Reasoning depth hint — `low` (reference/lookup), `medium` (guided workflow), `high` (deep analysis/critique)
### Skill Types
**Agent-delegating skills** (majority): Invoke a specific agent via Agent tool relay. Expected sections:
- **Agent Invocation** heading (or **Relay Template** heading) — cross-reference to RELAY_TEMPLATE.md
- `## Success Criteria`
- `## Agent-Specific PRODUCE` — T1/T2/T3 outputs
- Mention of `scratch` (T1 scratch tier acknowledgment)
- `## When This Skill Activates`
**Hybrid skills**: Do significant direct work AND dispatch agents. These are still agent-delegating: if a skill dispatches agents at any point, it carries all the sections above.
**Standalone skills** (nexus, serena-code-nav, cli-controller, brainstorming-gate, writing-nx-skills): Provide guidance directly without agent delegation. Sections: `## When This Skill Activates`, and `## Success Criteria` (optional for pure reference).
**Discipline skills** (brainstorming-gate): Enforce process rules. Sections: `<HARD-GATE>` or `<EXTREMELY-IMPORTANT>` blocks, a rationalization prevention table, a red flags list.
### Cross-References
Use explicit markers, not file paths:
- `**REQUIRED SUB-SKILL:** Use /conexus:<skill-name> for [purpose]`
- `**REQUIRED BACKGROUND:** Understand /conexus:<skill-name> before using this skill`
Never use `@` syntax (force-loads files, burns context).
### Relay Cross-Reference
Agent-delegating skills reference the canonical relay template:
```markdown
## Agent Invocation
Use the Agent tool with standardized relay format.
See [${CLAUDE_PLUGIN_ROOT}/resources/agent-shared/RELAY_TEMPLATE.md](../../resources/agent-shared/RELAY_TEMPLATE.md) for required fields and examples.
```
Do NOT inline the relay template. One source of truth: `${CLAUDE_PLUGIN_ROOT}/resources/agent-shared/RELAY_TEMPLATE.md`.
### Storage Tier References
Skills that produce outputs must document which tiers they use:
- **T1 scratch**: scratch tool: action="put", content="...", tags="..." — session-scoped ephemeral notes
- **T2 memory**: memory_put tool: content="...", project="{repo}", title="file.md" — cross-session state
- **T3 knowledge**: store_put tool: content="...", collection="<subject>", title="..." — permanent validated findings
### Registering and routing a skill
If your project keeps a plugin registry or a routing table, add the new skill there so it is discoverable. Keep any SessionStart text to the situations and the few skills that answer them: it is not a menu, and a skill that only dispatches an agent the model already dispatches directly does not earn a place in it.
## Promoting a Memory File
When a memory file's "How to apply" is a procedure, ordered steps, over about 8 KB, or a bright line, promote it: read `promotion.md` in this skill's directory for the criterion, the target table, citing sources, the loss check and the empty-list rule.
## Known Pitfalls
### bd update --description silently corrupts multi-line content
Only where the project has a `.beads/` directory. Without one, skip this: record notes with `memory_put` or in the hand-back.
**Never** instruct agents to use `bd update <id> --description "..."` for multi-line or markdown content. Shell escaping silently destroys backticks (executed as command substitution), `$variables` (expanded to empty), and nested quotes (break argument boundaries). No error is raised — the command reports success with mangled data.
**Correct pattern**: Write the content to a temp file with the Write tool, then append it through command substitution:
```
bd update <id> --append-notes "$(cat /tmp/bead-<id>.md)"
```
`$(cat ...)` inside double quotes keeps the file's backticks and `$variables` literal. Inline multi-line `--notes` or `--design` has the same problem: use `--design-file` or the pattern above. **Never use `--body-file` or `--description` to add to a bead**: both REPLACE the description.
## Quality Checklist
- [ ] Frontmatter has `name`, `description`, and `effort` — only these three fields
- [ ] Description starts with "Use when" and describes triggering conditions, not the workflow; no YAML comments in frontmatter
- [ ] Agent-delegating: an **Agent Invocation** heading (or Relay Template heading), an `## Agent-Specific PRODUCE` section, and `scratch` mentioned somewhere
- [ ] Has a `## Success Criteria` section
- [ ] All `../../resources/agent-shared/` cross-references resolve to existing files
- [ ] `effort` matches the skill type (low=reference, medium=workflow, high=analysis)
- [ ] Registered and routed wherever your project lists its skills
Before committing, run your project's plugin-structure checks: whatever validates skill frontmatter, required sections and cross-references in the repository that holds the plugin.
## Testing Skills
Run your project's plugin-structure checks for structural validation. For behavioral testing, follow TDD-for-documentation — create pressure scenarios, test baseline without skill, verify compliance with skill.