coding-workflow
This skill should be used when users are ready to start Stage 2 coding, asks about processing documents systematically, needs to track coding progress, wants to generate audit documentation, or mentions 'batch', 'coding session', 'systematic coding'.
What this skill does
# coding-workflow
Document coding orchestration for Stage 2. Manages the systematic coding process, tracks progress, and generates audit trails.
## When to Use
Use this skill when:
- User is ready to start Stage 2 coding
- User asks about processing documents systematically
- User needs to track coding progress
- User wants to generate audit documentation
- User mentions "batch", "coding session", or "systematic coding"
## Prerequisites
**Before using this skill, verify:**
1. Stage 1 is complete (10+ documents manually coded)
2. Initial data structure exists
3. Project is properly initialized
Use `skills/_shared/scripts/read-config.js` to check readiness.
## Workflow Stages
### Stage 2 Phase 1: Parallel Streams
**Stream A (Theoretical)**
- Analyze foundational literature
- Extract theoretical patterns
- Use @scholarly-companion for Socratic dialogue
**Stream B (Empirical)**
- Apply @dialogical-coder to documents
- Follow 4-stage visible reasoning
- Build evidence for concepts
### Stage 2 Phase 2: Synthesis
- Compare theoretical and empirical patterns
- Identify alignments and tensions
- Refine data structure
### Stage 2 Phase 3: Pattern Characterization
- Identify systematic variations
- Document pattern properties
- Prepare for Stage 3 theorizing
## Scripts
### process-batch.js
Process a batch of documents through coding workflow.
```bash
node skills/coding-workflow/scripts/process-batch.js \
--project-path /path/to/project \
--documents "D001,D002,D003" \
--agent dialogical-coder \
--phase phase2_synthesis
```
### track-documents.js
Track which documents have been coded and their status.
```bash
node skills/coding-workflow/scripts/track-documents.js \
--project-path /path/to/project \
--list # List all documents and status
--mark-coded D004 # Mark document as coded
```
### generate-audit.js
Generate audit trail documentation.
```bash
node skills/coding-workflow/scripts/generate-audit.js \
--project-path /path/to/project \
--output audit-trail.md
```
## Coding Session Flow
### Recommended Session Structure
1. **Pre-Session (5 min)**
- Check config state: `read-config.js`
- Review recent conversation log
- Set session goals
2. **Coding (45-60 min)**
- Process 5-10 documents with @dialogical-coder
- Full 4-stage reasoning for each
- Log interactions: `append-log.js`
3. **Reflection (10-15 min)**
- Write analytical memo
- Update data structure if needed
- Note emerging questions
4. **Post-Session**
- Update progress: `update-progress.js`
- Queue documents for next session
### Interpretive Pauses
Every 5 documents, the system prompts:
> "You've coded 5 documents. Before continuing, reflect:
> - What patterns are emerging?
> - Any surprises or tensions?
> - Does the data structure still fit?"
This is enforced by the `interpretive-pause.js` hook.
## Templates
### conversation-log-spec.md
Specification for the JSONL log format used for AI-to-AI transparency.
Entry structure:
```json
{
"timestamp": "ISO-8601",
"agent": "dialogical-coder",
"action": "coding",
"document_id": "D003",
"concept_id": "AD1_T1_C1",
"content": "Applied code with reasoning...",
"metadata": {}
}
```
## Document Status Tracking
| Status | Meaning |
|--------|---------|
| `pending` | Not yet coded |
| `in_progress` | Currently being coded |
| `coded` | First pass complete |
| `reviewed` | Human has reviewed AI coding |
| `finalized` | Coding complete, quotes extracted |
## Integration Points
- **@dialogical-coder** - Primary coding agent
- **interpretive-pause hook** - Enforces reflection breaks
- **_shared scripts** - State management
- **gioia-methodology skill** - Data structure validation
## Related
- **Commands:** Various coding commands trigger this skill
- **Agents:** @dialogical-coder for visible reasoning
- **Hooks:** interpretive-pause.js, check-stage1-complete.js
- **Other Skills:** project-dashboard for progress visualization
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.