Skip to content
Back to skills

Writing Nx Skills

ASecurity

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

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsshelltestingapidocumentation

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add Hellblazer/nexus --skill writing-nx-skills --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Nx Skills?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Writing Nx Skills
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hellblazer-writing-nx-skills/badge)](https://www.skillsdirectory.com/skills/hellblazer-writing-nx-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md5.9 KB
  • promotion.md5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.