xiaohongshu
xiaohongshu
log-capturer
Captures Claude Code conversation sessions in structured markdown format tied to work items with redaction
Full skill instructions
v2.0 Update: Now delegates to log-writer skill for all file creation, using the session log type from the type context system. You focus on capture logic (real-time session tracking, redaction), while log-writer handles template rendering and validation.
Your purpose is to create permanent records of development sessions that can be referenced later for debugging, learning from past implementations, and understanding decision-making processes. </CONTEXT>
<CRITICAL_RULES>
When starting a new session:
Execute scripts/start-capture.sh with issue_number:
Build data object for log-writer:
{
"log_type": "session",
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"issue_number": 123,
"title": "Session for Issue #123",
"date": "2025-11-16T10:30:00Z",
"status": "active",
"repository": "fractary/claude-plugins",
"branch": "feat/119-refactor-docs-plugin",
"model": "claude-sonnet-4.5",
"conversation_content": ""
}
Invoke log-writer skill:
Receive: log_path, log_id
Store active session state:
Report session started with path
When appending messages:
Check if session is active:
Execute scripts/apply-redaction.sh:
[A-Za-z0-9_-]{32,} in key fieldsghp_, sk-, bearer tokens[REDACTED:{TYPE}] per session standardsAdd timestamp and role:
**[2025-11-16 10:35:00] User:**
Create a new authentication module
**[2025-11-16 10:35:15] Claude:**
I'll create an authentication module...
Execute scripts/append-message.sh:
When stopping capture:
Load session context
Execute scripts/stop-capture.sh:
Read current session log and update frontmatter:
status: completed
end_date: "2025-11-16T13:00:00Z"
duration_seconds: 9000
conversation_turns: 45
token_count: 12500
Extract from conversation:
Invoke log-validator skill:
Remove session from active state
Report session finalized with summary
When logging specific message:
If active session exists:
Follow append workflow
</WORKFLOW>
<SCRIPTS>Purpose: Generate session metadata and initialize capture
Usage: start-capture.sh <issue_number> [context_json]
Outputs: Session metadata JSON (for log-writer)
v2.0 Change: Returns data object, doesn't write file (delegated to log-writer)
Purpose: Append message to active session log file
Usage: append-message.sh <session_id> <role> "<message>"
Roles: user | claude | system
v2.0 Change: Direct file append (not delegated - log-writer is for creation)
Purpose: Calculate session metrics and prepare final data
Usage: stop-capture.sh <session_id>
Outputs: Updated session data JSON
v2.0 Change: Returns data for frontmatter update, doesn't write (append does)
Purpose: Apply redaction rules from session type standards
Usage: apply-redaction.sh "<message>"
Outputs: Redacted message text
v2.0 NEW: Uses session type standards.md for redaction patterns
</SCRIPTS>
<COMPLETION_CRITERIA> Operation complete when:
Start capture:
🎯 STARTING: Log Capture
Issue: #123
Type: session
───────────────────────────────────────
Creating session log via log-writer...
✓ Session ID: 550e8400-e29b-41d4-a716-446655440000
✓ Type: session (validated)
✓ Log created: .fractary/logs/session/session-550e8400.md
✅ COMPLETED: Log Capture
Session file: .fractary/logs/session/session-550e8400.md
Status: active
Recording started
───────────────────────────────────────
Next: All conversation will be captured until stopped
Stop capture:
🎯 STARTING: Stop Capture
Session: 550e8400-e29b-41d4-a716-446655440000
───────────────────────────────────────
Calculating metrics...
✓ Duration: 2h 30m (9000s)
✓ Turns: 45
✓ Tokens: ~12,500
Updating session log...
✓ Status: active → completed
✓ Metrics added to frontmatter
Validating final log...
✓ Validation passed (session type)
✅ COMPLETED: Stop Capture
Session finalized: .fractary/logs/session/session-550e8400.md
Duration: 2h 30m | Turns: 45 | Status: completed
───────────────────────────────────────
Next: Session can be listed with /fractary-logs:list --type session
</OUTPUTS>
<DOCUMENTATION> Session logs are self-documenting through the **session type template**. The type context system provides: - Schema validation (types/session/schema.json) - Template structure (types/session/template.md) - Standards and conventions (types/session/standards.md) - Validation rules (types/session/validation-rules.md) - Retention policy (types/session/retention-config.json)No additional documentation needed after capture operations. </DOCUMENTATION>
<ERROR_HANDLING>
If session already active:
If trying to stop/append without active session:
If log-writer skill fails:
❌ ERROR: Session log creation failed
Log-writer error: Missing required field 'session_id'
Suggestion: Verify session metadata includes all required fields per session schema
If session log fails validation:
⚠️ WARNING: Session validation failed
Errors: Missing conversation_content section
Status: Session created but may have issues
Suggestion: Use log-validator to check and fix issues
If cannot write to log directory:
</ERROR_HANDLING>
What changed:
What stayed the same:
Benefits:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience