methodological-rules
This skill should be used when users mention 'generate rules', 'isolation rules', 'methodology preset', 'apply preset', 'saturation', 'am I saturated', 'branch', 'fork', 'explore alternative', 'team', 'add researcher', 'intercoder reliability', 'dashboard', 'show status', or after /qual-design completes.
What this skill does
# Methodological Rules Skill
Comprehensive methodological support: isolation rules, strain detection, saturation tracking, workspace branching, multi-researcher collaboration, and visualization.
---
## When to Use This Skill
**Triggers:**
- "generate rules" / "create rules" / "isolation rules"
- "methodology preset" / "apply preset"
- "saturation" / "am I saturated" / "theoretical saturation"
- "branch" / "fork" / "explore alternative"
- "team" / "add researcher" / "intercoder reliability"
- "dashboard" / "show status" / "visualize"
- After `/qual-design` completes
- When research_design changes in config
**Auto-invoked:**
- By `PostPhaseTransition` hook when sandwich_status changes
- By `project-setup` skill after design configuration
---
## What This Skill Does
1. **Reads research design** from `config.json`
2. **Generates Claude Code rules** in `.claude/rules/`
3. **Adapts rules** based on current phase
4. **Logs changes** to reflexivity journal
---
## Rule Types Generated
| Rule | When Generated | Purpose |
|------|---------------|---------|
| `case-isolation.md` | study_type includes "comparative" | Prevent cross-case contamination |
| `wave-isolation.md` | study_type includes "longitudinal" | Preserve temporal integrity |
| `stream-separation.md` | streams.enabled = true | Keep theory/data separate until synthesis |
---
## Rule Lifecycle
```
research_design configured
↓
generate-rules.js creates .claude/rules/
↓
Rules active with configured friction level
↓
Phase transition detected (hook)
↓
update-rules.js checks relaxes_at conditions
↓
Rules regenerated with updated status
↓
Change logged to reflexivity journal
```
---
## Friction Levels
Rules use graduated friction, not binary allow/block:
| Level | Behavior | When to Use |
|-------|----------|-------------|
| `silent` | Log only, no interruption | Low-risk boundaries |
| `nudge` | Gentle reminder in response | Moderate guidance |
| `challenge` | Pause, request justification | Important methodological boundaries |
| `hard_stop` | Block action | Critical integrity requirements |
---
## Scripts
### generate-rules.js
```bash
node skills/methodological-rules/scripts/generate-rules.js \
--project-path /path/to/project
```
**What it does:**
- Reads `config.json` research_design section
- Generates rule files from templates
- Places rules in `.claude/rules/` (auto-discovered by Claude Code)
- Returns JSON summary of generated rules
### check-phase.js
```bash
node skills/methodological-rules/scripts/check-phase.js \
--project-path /path/to/project
```
**What it does:**
- Reads current sandwich_status
- Returns current phase and which rules should be relaxed
### update-rules.js
```bash
node skills/methodological-rules/scripts/update-rules.js \
--project-path /path/to/project
```
**What it does:**
- Called by PostPhaseTransition hook
- Checks which rules need status updates
- Regenerates rules with new status
- Logs changes to reflexivity journal
### strain-check.js
```bash
# Check strain status
node skills/methodological-rules/scripts/strain-check.js \
--project-path /path/to/project
# Record an override
node skills/methodological-rules/scripts/strain-check.js \
--project-path /path/to/project \
--record-override --rule-id case-isolation \
--justification "Building cross-cutting theme"
# Record resolution
node skills/methodological-rules/scripts/strain-check.js \
--project-path /path/to/project \
--record-resolution --rule-id case-isolation \
--resolution phase_transition
```
**What it does:**
- Tracks rule override patterns
- Detects strain (3+ overrides triggers review)
- Generates conversational review prompts
- Records resolutions for audit trail
### apply-preset.js
```bash
# List available presets
node skills/methodological-rules/scripts/apply-preset.js --list-presets
# Apply a preset
node skills/methodological-rules/scripts/apply-preset.js \
--project-path /path/to/project --preset gioia_corley
```
**What it does:**
- Lists methodology presets (Gioia, Charmaz, Straussian, etc.)
- Applies preset defaults (isolation config, proactive prompts, vocabulary)
- Logs to reflexivity journal
### saturation-tracker.js
```bash
# Check saturation status
node skills/methodological-rules/scripts/saturation-tracker.js \
--project-path /path/to/project --status
# Record document coding
node skills/methodological-rules/scripts/saturation-tracker.js \
--project-path /path/to/project \
--record-document --doc-id INT_001 --new-codes 5
# Record code refinement
node skills/methodological-rules/scripts/saturation-tracker.js \
--project-path /path/to/project \
--record-refinement --code-id coping --change-type split
# Full assessment
node skills/methodological-rules/scripts/saturation-tracker.js \
--project-path /path/to/project --assess
```
**What it does:**
- Tracks multi-dimensional saturation (generation, coverage, refinement, redundancy)
- Calculates saturation level (low → saturated)
- Provides recommendations based on saturation signals
### workspace-branch.js
```bash
# Fork a branch
node skills/methodological-rules/scripts/workspace-branch.js \
--project-path /path/to/project \
--fork --name "alternative-structure" --framing exploratory
# Switch branches
node skills/methodological-rules/scripts/workspace-branch.js \
--project-path /path/to/project --switch --branch-id alt-123
# Merge (requires memo)
node skills/methodological-rules/scripts/workspace-branch.js \
--project-path /path/to/project \
--merge --branch-id alt-123 --memo "Synthesis explanation..."
```
**What it does:**
- Creates interpretive branches for exploratory analysis
- Tracks methodological framing (exploratory, confirmatory, negative case)
- Requires synthesis memo for merges
- Preserves abandoned branches for audit trail
### viz-dashboard.js
```bash
# Full dashboard
node skills/methodological-rules/scripts/viz-dashboard.js \
--project-path /path/to/project --view all
# Specific views
node skills/methodological-rules/scripts/viz-dashboard.js \
--project-path /path/to/project --view saturation
# Mermaid export
node skills/methodological-rules/scripts/viz-dashboard.js \
--project-path /path/to/project --mermaid lineage
```
**What it does:**
- Renders CLI dashboards (ASCII art, box drawing)
- Views: saturation, rules, branches, all
- Exports Mermaid diagrams for documentation
### researcher-team.js
```bash
# Add team member
node skills/methodological-rules/scripts/researcher-team.js \
--project-path /path/to/project \
--add-member --name "Jane Doe" --role coder
# Start ICR session
node skills/methodological-rules/scripts/researcher-team.js \
--project-path /path/to/project \
--start-icr-session --participants "jane,john" --documents "INT_001"
# Log attribution
node skills/methodological-rules/scripts/researcher-team.js \
--project-path /path/to/project \
--log-attribution --action created_code --target adaptive_coping
```
**What it does:**
- Manages research team members and roles
- Tracks current researcher for attribution
- Supports intercoder reliability sessions
- Logs all analytical decisions to researcher
---
## Templates
Templates use Mustache-style placeholders:
- `{{study_type}}` - From config
- `{{case_count}}` - Number of cases
- `{{case_names}}` - Comma-separated case names
- `{{current_phase}}` - Current sandwich_status phase
- `{{relaxes_at_phase}}` - When this rule relaxes
- `{{friction_level}}` - Current friction setting
- `{{rule_status}}` - active | relaxed
- `{{timestamp}}` - Generation timestamp
---
## Integration Points
**With existing architecture:**
- Hooks: `PostPhaseTransition` triggers rule updates
- Config: Reads from `research_design` section
- Agents: `@dialogical-coder` references rules during coding
- Commands: `/qual-status` shows active rules
**With Claude Code:**
- Rules placed in `.claude/rules/` for auto-discovery
- Uses official glob Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.