StrayMark - Recommended Workflows
Patterns and cadences for using StrayMark day to day.
Table of Contents
- After Initial Setup
- Daily Development
- Keeping StrayMark Updated
- Checking Project Health
- Using Skills (Active Documentation)
- Team Patterns
- Understanding Versions
After Initial Setup
You ran straymark init . and committed the result. Now what?
- Open your project with your AI coding assistant (Claude Code, Cursor, Gemini CLI, etc.)
- The assistant will automatically read the StrayMark directives (
CLAUDE.md,GEMINI.md, etc.) - From this point on, the assistant creates documentation in
.straymark/as part of its normal workflow - No extra configuration needed — StrayMark works passively through the directive files
Daily Development
The Passive Loop
- Work normally with your AI assistant — write features, fix bugs, refactor
- The AI creates documents in
.straymark/according to the governance rules:- AILOG for significant implementations (>10 lines changed)
- AIDEC when choosing between alternatives
- ADR for architectural decisions
- ETH when ethical concerns arise
- Review documents flagged with
review_required: true - Commit documentation together with the corresponding code changes
When to Create Documents Manually
Use the active system (skills) when:
- The AI missed documenting a significant change
- You (a human) made a decision that should be recorded
- You want to create a REQ, TES, TDE, or INC document
- You want to check documentation compliance
Keeping StrayMark Updated
Recommended Cadence
- Monthly or when you see a new release on GitHub
- Check the releases page for changelogs
Update Commands
| Goal | Command |
|---|---|
| Update both framework and CLI | straymark update |
| Update only templates and governance files | straymark update-framework |
| Update only the CLI binary | straymark update-cli |
Framework and CLI have independent versions — you can update one without the other. See Understanding Versions.
After Updating
- Review changes to directive files and governance docs
- Commit the updated files:
git add .straymark/ && git commit -m "chore: update StrayMark framework" - If you customized any framework files, check for conflicts
Checking Project Health
CLI Status
straymark status
Shows: framework version, CLI version, directory structure integrity, and document statistics by type. Use it to verify that the installation is healthy.
Documentation Compliance (Skill)
/straymark-status
The /straymark-status skill (available in Claude Code and Gemini CLI) analyzes:
- Which recent code changes lack corresponding documentation
- Document compliance against governance rules
- Overall documentation health
Using Skills (Active Documentation)
StrayMark has two documentation systems:
| System | How it works | When to use |
|---|---|---|
| Passive | AI auto-documents via directive files | Default — happens automatically |
| Active | User invokes skills to create docs | When passive missed something, or for human decisions |
Available Skills
| Skill | Purpose |
|---|---|
/straymark-status | Check documentation compliance |
/straymark-new | Create any document type (suggests best fit) |
/straymark-ailog | Quick AILOG creation |
/straymark-aidec | Quick AIDEC creation |
/straymark-adr | Quick ADR creation |
/straymark-audit-prompt CHARTER-XX (fw-4.8.0+, refactored in fw-4.9.0) | Generate the unified audit prompt at the canonical path .straymark/audits/<id>/audit-prompt.md. Wraps straymark charter audit --prepare. Operator then opens N auditor CLIs and runs /straymark-audit-execute in each — no copy/paste. |
/straymark-audit-execute [CHARTER-XX] (fw-4.9.0+) | Run inside an auditor-side CLI (gemini-cli, claude-cli, copilot-cli, codex-cli). Reads the prompt from disk, audits with tool use citing path:line, writes a report keyed on the auditor's model id. Argument optional — auto-discovers prompts pending from this model. |
/straymark-audit-review CHARTER-XX (fw-4.8.0+, expanded in fw-4.9.0) | Counterpart to audit-prompt. Reads N reports, verifies findings against actual code, produces review.md consolidated 6-section analysis (Executive summary / Scope / Per-auditor evaluation / Remediation plan P0-P4 / Discarded / Auditor ratings), and merges external_audit: YAML into telemetry. |
For full skill details, see the README.
Charter audit checkpoint (fw-4.8.0+)
When co-implementing a Charter, the agent will proactively offer an external audit at one specific moment: when implementation is done, drift is clean, and charter close has not yet been invoked. The recommendation is YES/NO based on the Charter's risk surface and complexity (full heuristics in .straymark/00-governance/AGENT-RULES.md §12).
External audit is fully optional and never enforced. The Charter's declarative scope + drift check + AILOG discipline already provide rigorous closure without it. Audit adds cross-model signal where the Charter touched security surface, introduced new components, or has high-complexity functions in the diff. Decline freely if the cost (2-3 LLM auditors) does not match the value for your case.
Team Patterns
PR Reviews
- Check that significant code changes include corresponding
.straymark/documents - Review any documents with
review_required: true - Verify that AILOGs accurately describe what the AI did
Onboarding New Team Members
- Point them to
.straymark/QUICK-REFERENCE.mdfor a quick overview - Have them read recent ADRs to understand architectural context
- Show them AILOGs from recent features to see how documentation works in practice
Sprint Retrospectives
- Review AILOGs and AIDECs from the sprint to understand AI contribution patterns
- Identify undocumented decisions that should have been recorded
- Check TDE documents for accumulating technical debt
Shared AI Assistant Usage
When multiple team members use AI assistants on the same project:
- Each assistant session produces its own documents
- The
agentfield in metadata identifies which assistant created each document - Review overlapping or contradictory AIDECs during PR review
China Regulatory Workflow (opt-in)
If your project operates in mainland China or processes personal information of mainland China users, enable the China scope and follow this workflow.
One-time Setup
- Edit
.straymark/config.ymland addchinatoregional_scope:regional_scope:- global- eu # if also EU-subject- china - Run
straymark compliance --region chinato see the baseline (all checks will fail until you create the supporting documents). - Read the guides installed under
.straymark/00-governance/:CHINA-REGULATORY-FRAMEWORK.md— overview and coverage matrixTC260-IMPLEMENTATION-GUIDE.md— five-level risk gradingPIPL-PIPIA-GUIDE.md— when a PIPIA is required and what it must containCAC-FILING-GUIDE.md— single vs dual filing, status lifecycleGB-45438-LABELING-GUIDE.md— explicit + implicit labeling design
When You Add a Generative AI Model
Bundle of documents to create together (cross-linked via related:):
| Document | Purpose | Required when |
|---|---|---|
MCARD | Model card with cac_filing_required, gb45438_applicable, tc260_risk_level | Always for in-scope models |
TC260RA | Risk grading (scenario × intelligence × scale → 5 levels) | Always |
AILABEL | Explicit + implicit labeling per GB 45438 | When the model generates content |
CACFILE | Algorithm filing record | When cac_filing_required: true |
PIPIA | Personal-info impact assessment (Art. 55-56) | When personal info is processed |
SBOM | Training-data inventory + GB/T 45652 compliance | Always |
straymark compliance --region china confirms the bundle is complete.
When an Incident Occurs
The INC template includes a CSL 2026 Incident Reporting section. Set:
csl_severity_level: relatively_major # or particularly_serious | major | general
csl_report_deadline_hours: 4 # 1 for particularly_serious, 4 for relatively_major
straymark validate enforces severity-to-deadline coherence (CROSS-008, CROSS-009). Major+ incidents must be closed (status accepted) within 30 days for the CSL-003 check to pass.
Cross-Border Data Transfer
When a process involves transferring personal information out of mainland China, set pipl_cross_border_transfer: true on the PIPIA and document the chosen mechanism (CAC security assessment / certification / standard contract) in the Cross-Border Transfer Analysis section. CROSS-011 will warn if none is documented.
Daily Compliance Check
# Before merging a feature branch that touches AI services
straymark validate # cross-rules including CROSS-004..011
straymark compliance --region china # per-framework score
Understanding Versions
StrayMark uses independent versioning for its two components:
| Component | Tag prefix | Contains | Updated via |
|---|---|---|---|
| Framework | fw- | Templates, governance docs, directives, scripts | straymark update-framework |
| CLI | cli- | The straymark binary | straymark update-cli |
Why Independent Versions?
- Framework changes (new templates, updated rules) are more frequent
- CLI changes (new commands, bug fixes) follow a different cadence
- You can update governance docs without needing a new CLI binary
Checking Your Versions
straymark about # Quick version check
straymark status # Full health report including versions
For detailed CLI information, see the CLI Reference.