Create a new topic file in .notes/ with frontmatter template
This skill creates a new topic file in the `.notes/` directory with structured frontmatter and section headers.
When this command is invoked with `/ccn:create-topic $ARGUMENTS`:
If `$ARGUMENTS` is empty or not provided:
Take the provided topic name and transform it:
1. Replace all spaces with underscores
2. Replace all hyphens with underscores
3. Convert to UPPERCASE
4. Add `.md` extension
Examples:
Store the result as the filename.
Use the **Read** tool to check if `.notes/{filename}` already exists.
- Tell user: "Error: Topic already exists: .notes/{filename}"
- Tell user: "Use /ccn:update-topic to add entries to this topic"
- STOP - do not continue
- Continue to next step
Use the **Bash** tool to ensure the directory exists:
```bash
mkdir -p .notes
```
Create YAML frontmatter with these fields:
1. **description**: "Knowledge and patterns for {original topic name}"
- Use the original input, not the normalized filename
- Example: input "api-design" → "Knowledge and patterns for api-design"
2. **keywords**: Generate array from normalized filename
- Split filename (without .md) on underscores
- Lowercase each part
- Include the combined form (full filename without .md, lowercased)
- Example: "API_DESIGN.md" → `["api", "design", "api_design"]`
3. **last_updated**: Today's date in YYYY-MM-DD format
Use the **Write** tool to create `.notes/{filename}` with this structure:
```markdown
---
description: "Knowledge and patterns for {topic}"
keywords: [{keyword array}]
last_updated: "YYYY-MM-DD"
---
(Add overview content here)
(Document key concepts here)
(Capture recurring patterns here)
(Add detailed notes here)
---
*Topic created: YYYY-MM-DD*
```
**Important formatting notes:**
Tell the user: "Created: .notes/{filename}"
If any tool fails (mkdir, Read, Write):
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/ccncreate-topic/raw