agentleFS
dungnotnulldungnotnull/hybrid-harness-chaos-process-prm/CLAUDE.md

hybrid-harness-chaos-process-prm

CLAUDE.md19 starsChanged 6 months agoMITView on GitHub

Project: hybrid-harness-chaos-process-prm Version: 0.5.0 Domain: Platform Engineering — Continuous Delivery + Resilience Engineering + Security + Compliance + Adversarial Critique Audience: Fullstack developers, SREs, Platform Engineers, DevOps practitioners, Security engineers AI Compatibility: Claude Code (with plugin manifest), Codex, Gemini, GPT-4, and any instruction-following LLM agent This repository defines a 37-skill Agile workflow covering the complete SDLC from ideation to production operations, including adversarial critique:

  • Installs packages

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

27 rules. About 0 are common, 22 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use /critique [subject] via the Claude Plugin or invoke s35 directly in any skill workflow.

    line 156
  2. Very specific:

    Every PR is validated by .github/workflows/ci.yml:

    line 176
  3. Very specific:

    All SKILL.md files pass structural validation

    line 177
  4. Distinctive:

    All AI agents working in this project MUST follow:

    line 207
  5. Distinctive:

    Never run destructive operations without explicit human approval

    line 210
  6. Distinctive:

    All chaos experiments require dryRun: true validation before live execution

    line 211
  7. Distinctive:

    No pipeline stage without a defined success criterion

    line 215
  8. Distinctive:

    No chaos experiment without a formal hypothesis

    line 216
  9. Distinctive:

    No feature flag without a measurable rollout metric

    line 217
  10. Distinctive:

    Every deployment pipeline MUST have a verification step

    line 231
  11. Distinctive:

    Every chaos experiment MUST have monitoring active before fault injection

    line 232
  12. Distinctive:

    If observability is absent, block execution

    line 233
  13. Distinctive:

    All Harness resources expressed as YAML

    line 236
  14. Distinctive:

    All chaos experiments expressed as ChaosEngine / ChaosExperiment manifests

    line 237
  15. Distinctive:

    No manual UI-only changes

    line 238
  16. Distinctive:

    Every major decision CAN be stress-tested through s35 (Devil's Advocate)

    line 246
  17. Distinctive:

    No design, hypothesis, or release goes unchallenged

    line 247
  18. Distinctive:

    Every production deployment has a Go/No-Go checklist (s28)

    line 251
  19. Very specific:

    Every agent loads .commandcode/taste/taste.md before acting

    line 261
  20. Distinctive:

    Call Harness AI agent when available (orchestration layer)

    line 280
  21. Distinctive:

    After design decisions, before blast radius approval

    line 288
  22. Distinctive:

    After hypothesis formation, before acceptance criteria lock

    line 289
  23. Distinctive:

    Before Go/No-Go decisions (s28)

    line 290
  24. Distinctive:

    After strategic proposals (s31) `

    line 291
  25. Very specific:

    All 37 skills integrate with Harness AI's specialized agent ecosystem and the broader chaos engineering MCP ecosystem.

    line 357
  26. Very specific:

    Every skill declares its autonomy level in its SKILL.md:

    line 361
  27. Distinctive:

    Application-level chaos: Only 3.0% of real experiments (this project's s19 addresses this gap)

    line 404

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md — hybrid-harness-chaos-process-prm (Pro Max)

Project Identity

Project: hybrid-harness-chaos-process-prm Version: 0.5.0 Domain: Platform Engineering — Continuous Delivery + Resilience Engineering + Security + Compliance + Adversarial Critique Audience: Fullstack developers, SREs, Platform Engineers, DevOps practitioners, Security engineers AI Compatibility: Claude Code (with plugin manifest), Codex, Gemini, GPT-4, and any instruction-following LLM agent


What This Project Does

This repository defines a 37-skill Agile workflow covering the complete SDLC from ideation to production operations, including adversarial critique:

DomainPurpose
FoundationOrchestration, BA analysis, user flows, taste memory, progress tracking
CI/CD EngineeringPipeline design, service onboarding, delegates, secrets, feature flags, templates, GitOps
SecuritySAST, DAST, container scanning, dependency scanning, SBOM, supply chain security
TestingCloakBrowser E2E, performance/load testing, visual regression
Chaos EngineeringHypothesis-driven fault injection, blast radius control, steady state, game days
VerificationContinuous verification, observability, alerting, recommendations
GovernanceOPA policies, cloud cost, release management, disaster recovery
LearningResilience scoring, postmortem RCA, compliance & audit
ResearchDeep multi-source research, evidence synthesis, brainstorming debrief
OptimizationLatency, N+1, stress, atomicity, concurrency, security audit
DocumentationTechnical specs, user flows, usage guides, README generation
Adversarial CritiqueDevil's Advocate: stress-test decisions, detect fallacies, score arguments

Quick Reference: Skill Index (37 Skills)

#SkillPhaseTriggers
00OrchestratorFoundationworkflow, start, orchestrate
01BA RequirementsFoundationanalyze, PRD, requirements, spec
01-1User Flow WritingFoundationuser flow, journey map, edge case, sad path
02Taste MemoryFoundationpreference, always, never, I prefer
03Progress TrackerFoundationstatus, progress, where are we
04Pipeline DesignCI/CDpipeline, CI/CD, stages, deploy
05Service OnboardingCI/CDonboard, new service, register
06Delegate ManagementCI/CDdelegate, agent, install
07Secrets ManagementCI/CDsecret, credential, vault
08Feature FlagsCI/CDfeature flag, FF, rollout, toggle
09Template LibraryCI/CDtemplate, reusable, stage template
10GitOpsCI/CDGitOps, ArgoCD, sync, drift
11Security ScanningSecuritySAST, vulnerability, CVE, SBOM, scan
12CloakBrowser TestingTestingtest, E2E, browser, a11y, visual
13Performance TestingTestingload test, stress, benchmark, k6
14Experiment DesignChaoschaos experiment, fault, inject
15Hypothesis ValidationChaoshypothesis, steady state, SLO
16Blast Radius ControlChaosblast radius, scope, limit, abort
17Steady StateChaossteady state, baseline, probe
18Infrastructure FaultsChaosnode drain, disk, CPU, EC2 stop
19Application FaultsChaospod delete, container kill, latency
20Game Day PlanningGame Daygame day, chaos day, war game
21CV VerificationVerifycontinuous verification, canary
22ObservabilityVerifyobservability, dashboard, metrics
23AlertingVerifyalert, notify, recommend, remediate
24Policy GovernanceGovernOPA, policy, governance, compliance
25Cloud CostGoverncost, budget, optimization, CCM
26Resilience ScoringGovernresilience score, maturity, report
27PostmortemLearnpostmortem, RCA, learning, action
28Release ManagementGovernrelease, deploy prod, change mgmt
29Disaster RecoveryGovernDR, failover, RTO, RPO, backup
30Compliance & AuditLearncompliance, audit, SOC2, HIPAA, GDPR
31Strategic CreatorAnythink bigger, brainstorm, propose, innovate, upgrade
32Deep ResearchAnyresearch this, find papers, literature review, evidence for
33System OptimizationAnyoptimize, latency, N+1, stress test, CCU, atomicity, race condition, security audit
34Documentation WritingAnydocs, README, user guide, technical spec, userflow, usage instructions, how to use
35Devil's AdvocateAnychallenge this, stress-test, devil's advocate, find flaws, counter-argument, red team, critique

Complete Agile Workflow Map

` PHASE 0: FOUNDATION s00 -> s01 -> s02 + s03 (parallel)

PHASE 1: PLANNING & REQUIREMENTS s01 (BA deep analysis -> PRD + ADRs + backlog) s01-1 (User Flow Writing -> journeys, edge cases, sad paths)

-- s31 (STRATEGIC CREATOR — callable at ANY phase) -- ^v can be invoked before, during, or after any phase

-- s32 (DEEP RESEARCH — callable at ANY phase) -- ^v evidence-grounded research + brainstorming debrief

-- s33 (SYSTEM OPTIMIZATION — callable at ANY phase) -- ^v 7-module audit: latency, N+1, stress, atomicity, concurrency, security, agent-proposed

-- s34 (DOCUMENTATION — callable at ANY phase) -- ^v Technical specs, userflow diagrams, beginner-friendly usage guides, README

-- s35 (DEVIL'S ADVOCATE — callable at ANY phase) -- ^v Adversarial critique: challenge decisions, detect fallacies, score arguments, quality gates

PHASE 2: CI/CD SCAFFOLDING s04 -> s05 -> s06 -> s07 -> s08 -> s09 -> s10

PHASE 3: SECURITY GATE s11 (SAST + SCA + container + secrets + IaC + SBOM + SLSA) WARNING: BLOCKS all downstream phases if security gates fail

PHASE 4: TESTING s12 -> s13 (E2E baseline -> performance profiling) WARNING: Performance baseline required before chaos

PHASE 5: CHAOS EXPERIMENT DESIGN s14 -> s15 -> s16 -> s17 -> s18 -> s19

PHASE 6: GAME DAY EXECUTION s20 (orchestrated resilience exercise)

PHASE 7: VERIFICATION & OBSERVABILITY s21 -> s22 -> s23

PHASE 8: GOVERNANCE & RELEASE s24 -> s25 -> s26 -> s27 -> s28

PHASE 9: RESILIENCE & CONTINUITY s29 -> s30

FEEDBACK LOOP: s27 (findings) -> s01 (re-analysis) -> full cycle s30 (compliance gaps) -> s01 (PRD update) -> remediation cycle

DEVIL'S ADVOCATE GATES (s35, callable at ANY phase): s14 (experiment design) -> s35 (challenge hypothesis) -> revised experiment s15 (hypothesis validation) -> s35 (attack hypothesis) -> strengthened hypothesis s28 (release management) -> s35 (pre-deployment gate) -> Go/No-Go verdict s31 (strategic proposals) -> s35 (Demolisher-level critique) -> only survivors forwarded s01 (PRD review) -> s35 (Critic-level challenge) -> revised PRD `


Devil's Advocate Integration (s35)

Adapted from dungnotnull/devils-advocate-agent, s35 provides:

FeatureDescription
4 Intensity LevelsSkeptic (1) -> Critic (2) -> Prosecutor (3) -> Demolisher (4)
14+ Fallacy TypesAd Hominem, Straw Man, Hasty Generalization, False Dichotomy, Slippery Slope, etc.
5-Dimension ScoringClarity, Evidence Quality, Logical Consistency, Novelty, Defense Improvement (0-100 each)
4-Perspective ChallengeBusiness, Engineering, Reliability, Security lenses
Quality Gate VerdictPASS (>=70), CONDITIONAL (>=50), FAIL (<50 or any dimension <40)
Optional ML EnhancementCan integrate with Devil's Advocate Agent for NLI-based fallacy detection and RAG-grounded counter-arguments

Use /critique [subject] via the Claude Plugin or invoke s35 directly in any skill workflow.


Progress Tracking & Development Phase Management

Local State (.commandcode/progress.json)

The progress-tracker CLI manages workflow state: progress-tracker init --project-name "my-project" progress-tracker status # Show dashboard progress-tracker next # Show next phase progress-tracker transition 04-pipeline-design in_progress --agent "claude-code" progress-tracker block "Waiting for security approval" progress-tracker resolve BLK-001 progress-tracker report # Generate full report progress-tracker handoff # Agent handoff summary

CI/CD Gates (GitHub Actions)

Every PR is validated by .github/workflows/ci.yml:

  • All SKILL.md files pass structural validation
  • Python code passes linting (ruff)
  • Cross-references between skills are correct
  • SKILLS-CATALOG.md is up to date

Pre-commit Hooks

pip install pre-commit && pre-commit install Enforces: skill validation, YAML/JSON syntax, trailing whitespace, no direct commits to main.


Plugin Integration (Claude Code/Cowork)

This project includes a .claude-plugin/ manifest for first-class Claude Code/Cowork integration:

CommandDescription
/orchestrate [phase]Start or resume the full workflow from any phase
/critique [subject]Invoke Devil's Advocate (s35) to stress-test any decision
/progressShow workflow progress dashboard
/validateValidate all SKILL.md files for structural correctness

Adapted from anthropics/knowledge-work-plugins plugin architecture pattern.


Global Engineering Principles

All AI agents working in this project MUST follow:

1. Safety First, Always

  • Never run destructive operations without explicit human approval
  • All chaos experiments require dryRun: true validation before live execution
  • Blast radius must be documented and bounded before any fault injection

2. Hypothesis-Driven Everything

  • No pipeline stage without a defined success criterion
  • No chaos experiment without a formal hypothesis
  • No feature flag without a measurable rollout metric

3. Security as a Gate (NOT an Afterthought)

  • Security scanning (s11) runs on EVERY build — no exceptions
  • Zero HIGH/CRITICAL CVEs with fixes available = deployment blocked
  • SBOM generated for every artifact, signed, and archived
  • SLSA Level 3 provenance for all production artifacts

4. Performance Before Chaos

  • Load/stress testing (s13) MUST run before chaos (s14)
  • Without performance baseline, chaos results are meaningless
  • Combined chaos+load tests validate resilience under realistic traffic

5. Observability as a Gate

  • Every deployment pipeline MUST have a verification step
  • Every chaos experiment MUST have monitoring active before fault injection
  • If observability is absent, block execution

6. Infrastructure as Code

  • All Harness resources expressed as YAML
  • All chaos experiments expressed as ChaosEngine / ChaosExperiment manifests
  • No manual UI-only changes

7. Least Privilege

  • Harness delegates scoped to minimum required namespaces
  • Chaos service accounts scoped to target namespace
  • Secrets never printed to logs

8. Adversarial Quality Gates

  • Every major decision CAN be stress-tested through s35 (Devil's Advocate)
  • No design, hypothesis, or release goes unchallenged
  • Intensity level defaults: L2 (Critic) for design reviews, L3 (Prosecutor) for security, L4 (Demolisher) for release gates

9. Release Governance

  • Every production deployment has a Go/No-Go checklist (s28)
  • Deployment calendar respected — no Friday deploys, no freeze-period deploys
  • Rollback plan tested and documented BEFORE deployment

10. Compliance is Continuous (Not Annual)

  • Audit trail auto-generated quarterly (s30)
  • Control mapping updated with every new skill implementation
  • Evidence signed and timestamped (Cosign + Rekor)

11. Taste-Aware Execution

  • Every agent loads .commandcode/taste/taste.md before acting
  • Developer preferences override defaults
  • New preferences learned and stored by s02

Skill Execution Protocol

` Step 1: IDENTIFY current phase from progress.json (s03) Step 2: READ the orchestrator (s00) for context Step 3: READ the target skill's SKILL.md completely Step 4: VERIFY input contract — all prerequisites satisfied Step 5: LOAD taste data from .commandcode/taste/ Step 6: CHECK AI Agent Integration section in SKILL.md - Identify applicable Harness AI agent (if any) - Determine current autonomy level - Prepare human gates for approval Step 7: EXECUTE following the skill's prescribed workflow - Call Harness AI agent when available (orchestration layer) - Fall back to manual/template execution when unavailable Step 8: CAPTURE outputs into workflow context Step 9: UPDATE progress.json via s03 / progress-tracker CLI Step 10: NOTIFY orchestrator of completion Step 11: DISPATCH to next skill in sequence

Optional: INVOKE s35 (Devil's Advocate) at any quality gate - After design decisions, before blast radius approval - After hypothesis formation, before acceptance criteria lock - Before Go/No-Go decisions (s28) - After strategic proposals (s31) `


Technology Stack Reference

ToolRole
Harness CI/CDPipeline orchestration
Harness Feature FlagsProgressive delivery
Harness Chaos EngineeringEnterprise chaos orchestration
Harness GitOpsArgoCD-backed GitOps
Harness Cloud Cost ManagementFinOps
Harness Policy EngineOPA governance
LitmusChaosFault library
Prometheus + GrafanaObservability
CloakBrowser + PlaywrightE2E testing
k6Performance/load testing
SemgrepSAST
TrivyContainer scanning
Snyk / OWASP DCDependency scanning
GitleaksSecret detection
CheckovIaC security
SyftSBOM generation
Cosign + RekorArtifact signing + transparency
VeleroKubernetes backup
Vault / AWS SM / GCP SMSecrets management
Devil's Advocate AgentAdversarial critique (optional ML-enhanced integration)

Naming Conventions

`yaml

Harness Pipeline

<team>-<service>-<env>-pipeline.yaml

Chaos Experiment

<fault-type>-<target-scope>-<env>-experiment.yaml

Feature Flag

FF_<TYPE><DOMAIN><FEATURE>

Critique Report

.commandcode/artifacts/critique/critique-<subject>-<date>.md

Artifacts

.commandcode/artifacts/<category>/<type>-<service>.<ext> `


Environment Tiers

TierChaos AllowedBlast RadiusApproval
devYesPod-levelNone
stagingYesService-levelTeam lead
preprodYes, gatedNamespace-levelSRE + PM
productionYes, guard railsNode-level maxSRE + CTO

AI Agent Architecture

All 37 skills integrate with Harness AI's specialized agent ecosystem and the broader chaos engineering MCP ecosystem. See skills/AI-AGENT-MAPPING.md for the complete mapping.

SRE Autonomy Levels (Google SRE Framework)

Every skill declares its autonomy level in its SKILL.md:

LevelNameAgent Role
L0ManualNone
L1HypothesisAI suggests, human decides
L2AssistedAI drafts, human approves
L3DelegatedAI executes, human reviews
L4Full AutonomyAI acts independently

Current project state: L1-L2. Target: L2-L3. Safety-critical skills (s16, s29) remain L1-L2 permanently. Devil's Advocate (s35) is adversarial by design — intentionally independent of any Harness AI agent.

Harness AI Agent Coverage

AgentModelSkills Covered
DevOps AgentClaude Opus 4.5 (Vertex AI)s01, s01-1, s04-s10, s24, s28
Reliability AgentHarness AIs14-s20, s26
SRE AgentHarness AIs21-s23, s27, s29
Test AgentHarness AIs12-s13
FinOps AgentHarness AIs25
AppSec/STO AgentHarness AIs11, s30
Knowledge GraphHarness AIs03
None (adversarial by design)—s35
Multi-agentHarness AIs33

MCP Integration (Chaos Skills)

PlatformMCP ServerIntegration Skills
LitmusChaoslitmuschaos-mcps14-s20
Gremlingremlin-mcps14-s17
Steadybitsteadybit-mcps14-s20
AWS FISaws-fis-bedrocks18
Harness ChaosNative AIs14-s20

Research Backing

Key evidence supporting this architecture (from 34-source deep research, 2026-05-27):

  • ChaosEater (ASE 2025): LLM agents automate full chaos lifecycle on Kubernetes
  • AIOpsLab (Microsoft 2024): Establish pattern: chaos injection + AI fault localization + resolution
  • Google SRE AI Operator: L2/L3 autonomous mitigation across thousands of incidents
  • LLM RCA accuracy: 60-74% few-shot vs 82% human — co-pilot, not autonomous
  • Application-level chaos: Only 3.0% of real experiments (this project's s19 addresses this gap)
  • No published research exists on integrated CI/CD + chaos + governance AI workflows

Data Privacy

AspectPolicy
Model trainingDisabled across all AI integrations
Data storageNot stored or exposed to model providers beyond inference
Primary modelClaude Opus 4.5 via Google Vertex AI (0-day retention)
Fallback modelOpenAI GPT-4o (30-day retention, training opted out)
Data ownershipCustomer owns all data
ComplianceBuilt on strongest governance framework

This CLAUDE.md is the canonical entry point. Always read it first, then consult s00-orchestrator for phase context. For AI agent mapping details, consult skills/AI-AGENT-MAPPING.md. For adversarial critique, invoke s35-devils-advocate.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.