aggregate-logs
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Create slash commands with brainstorming and best practices
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/create-commandContext preview
What this command does when you run it.
Create slash commands with brainstorming and best practices
name: create-command description: Create slash commands with brainstorming and best practices usage: /create-command [command-description] [--skip-brainstorm] [--plugin <name>]
Creates new slash commands through a structured workflow: **iron-law → brainstorm → design → scaffold → validate**. Uses Socratic questioning to refine rough ideas into well-designed commands before generating any files.
Use this command when you need to:
Avoid this command if:
# Start with brainstorming (recommended) /create-command "run all tests and show coverage report" # Skip brainstorming if design is clear /create-command test-coverage --skip-brainstorm # Create in specific plugin /create-command "analyze git history" --plugin sanctum
Slash commands are shortcuts that expand into prompts Claude follows. They're stored as `.md` files in `commands/` and referenced in `plugin.json`.
**Simple command example:**
--- description: Run tests with coverage --- Run all tests with pytest and display a coverage report. Focus on files changed in the current branch.
**Command with arguments:**
---
description: Review specific PR
usage: /review-pr <pr-number> [--focus security|performance|all]
---
Review pull request #$ARGUMENTS using the code review skill. Focus on ${focus:-all} aspects.**This phase is required and cannot be skipped.**
Before any file creation, satisfy the Iron Law interlock:
# Determine test location based on target plugin
tests/unit/test_${command_name}_command.py"""Tests for ${command_name} command structure and validation.
Written BEFORE implementation per Iron Law.
"""
import json
from pathlib import Path
import pytest
class Test${CommandName}Command:
"""Test /${command_name} command structure."""
@pytest.fixture
def command_file_path(self) -> Path:
return Path(__file__).parents[2] / "commands" / "${command_name}.md"
@pytest.fixture
def plugin_json_path(self) -> Path:
return Path(__file__).parents[2] / ".claude-plugin" / "plugin.json"
def test_should_exist_when_command_file_path_resolved(
self, command_file_path: Path
) -> None:
"""Command file must exist."""
assert command_file_path.exists()
def test_should_have_frontmatter_when_parsing_content(
self, command_file_path: Path
) -> None:
"""Command must have valid frontmatter."""
content = command_file_path.read_text()
assert content.startswith("---")
assert "description:" in content
def test_should_be_registered_in_plugin_json(
self, plugin_json_path: Path
) -> None:
"""Command must be registered in plugin.json."""
plugin = json.loads(plugin_json_path.read_text())
commands = plugin.get("commands", [])
assert any("${command_name}.md" in cmd for cmd in commands)pytest tests/unit/test_${command_name}_command.py -v**Expected output (RED):**
FAILED test_should_exist_when_command_file_path_resolved - FileNotFoundError FAILED test_should_have_frontmatter_when_parsing_content - FileNotFoundError FAILED test_should_be_registered_in_plugin_json - AssertionError
**Iron Law Checkpoint**: Creating command `${command_name}`.
[E1] Command: pytest tests/unit/test_${command_name}_command.py -v
Output: 3 FAILED (file does not exist)
Status: RED - Interlock satisfied
**Self-Check**:
- [x] Test file created BEFORE implementation
- [x] Failure evidence captured
- [x] Tests drive the implementationproof:iron-law-red - Test failure captured for ${command_name}**Only after completing Phase 0 may you proceed to Phase 1.**
---
Before creating any files, refine the command concept through collaborative dialogue.
**Invoke the brainstorming skill:**
Use superpowers:brainstorming to refine this command idea before scaffolding.
The brainstorming phase will:
1. **Understand the purpose** - One question at a time:
2. **Explore the interface**:
3. **Design the implementation**:
4. **Validate the design** - Present in sections:
5. **Document the design**:
**Skip brainstorming** with `--skip-brainstorm` only when:
After brainstorming (or with `--skip-brainstorm`), the command prompts for:
1. **Command name** (if not provided)
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.
Manually evaluate a recent skill execution to record qualitative feedback.