agentleFS
Vimalk0703Vimalk0703/shipworthy/skills/quality/feedback-driven-adaptation/SKILL.md

feedback-driven-adaptation

Skill6 starsChanged 8 months agoMITView on GitHub

Use when guardrail strictness needs to adjust based on user signals, project maturity changes, or accumulated session data. Moves guardrails from static rules to dynamic control systems.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When signals indicate a tier change, follow this protocol:

    line 56
  2. Distinctive:

    When strictness changes, tell the user why:

    line 101
  3. Distinctive:

    Never silently change enforcement levels.

    line 108
  4. Distinctive:

    Every strictness change is a guardrail audit event:

    line 112
  5. Distinctive:

    If a downgrade leads to increased violations or a shipped bug:

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Feedback-Driven Adaptation

Core Rule

Static guardrails do not scale. Adapt enforcement based on evidence — user signals, project trajectory, and violation patterns — not assumptions.

A guardrail system that never adjusts is either too strict (slowing productive teams) or too lenient (missing real risks). The right level of enforcement changes as the project, team, and risk profile evolve.

Adaptation Signals

1. User Signals (Explicit Feedback)

Direct signals from user behavior and statements:

SignalInterpretationAdjustment
User says "stop checking X" or "skip this"Guardrail perceived as low-value for this contextDowngrade to advisory (warn, don't block) for this session
User repeatedly fixes the same guardrail findingThey understand the rule — it's workingKeep enforcing; the pattern needs structural fix, not softer rules
User overrides a guardrail and the code ships successfullyOverride was justifiedLog the override pattern; consider adjusting threshold
User asks "why did this block?"Guardrail lacks transparencyImprove explanation; do not reduce strictness
User says "be stricter" or "catch more of these"Under-enforcementIncrease detection sensitivity and/or escalate from advisory to blocking

2. Project Trajectory Signals

Automated signals from the project's evolution:

SignalDetectionAdjustment
Source file count crosses tier thresholdCount **/*.{ts,py,go,rs,java} excluding tests/generatedGraduate quality gate level (see quality-gates skill)
First deployment detectedCI/CD config added, deploy script presentGraduate from Level 0 to Level 1 minimum
Test coverage consistently above thresholdCoverage reports over last 5 sessionsAllow advisory-only mode for test-related guardrails
Test coverage decliningCoverage delta negative over 3+ sessionsEscalate test guardrails from advisory to blocking
New compliance-sensitive code addedAuth, payment, PII-handling code detectedAuto-activate compliance-awareness and pii-detection skills
External API integrations addedNew HTTP clients, webhook handlersAuto-activate vendor-risk-assessment and adaptive-security

3. Violation Pattern Signals

Trends in guardrail activations:

PatternMeaningResponse
Same violation type recurring across sessionsStructural issue, not a one-off mistakeSuggest architectural fix; escalate if unfixed after 3 occurrences
Violation rate dropping over timeTeam is learning; guardrails are workingMaintain current level — this is success, not a signal to relax
Sudden spike in violationsNew contributor, new feature area, or regressionIncrease enforcement temporarily; investigate root cause
Zero violations for extended periodEither clean code or guardrails aren't runningVerify guardrails are active; if genuinely clean, maintain level
High override rate on a specific guardrailGuardrail may be miscalibratedReview threshold; adjust or document why current level is correct

Tier Graduation Protocol

When signals indicate a tier change, follow this protocol:

Upgrading (More Strict)

1. Detect graduation trigger (file count, deployment, compliance code)
2. Announce to user: "Your project has grown — activating [Level N] quality gates"
3. First session at new level: advisory only (warn, don't block)
4. Second session: enforce normally
5. Log the graduation event to guardrail audit log

Downgrading (Less Strict)

Downgrading is rare and requires explicit justification:

1. User explicitly requests reduced strictness for specific guardrail
2. Verify the request is scoped (not "turn off all guardrails")
3. Downgrade specific guardrail to advisory for this project
4. Log the downgrade event with user's stated reason
5. Review in 5 sessions — if violations increase, re-escalate with explanation

Never downgrade these guardrails regardless of user request:

  • Secret/credential detection (always block)
  • Destructive command detection (always block)
  • PII in production logs (always block)

Adaptation Rules

Rule 1: Adapt Scope, Not Principle

Adjust which checks run and how they report, not whether the principle matters.

CORRECT:  "Downgrading structured-logging check to advisory for this CLI project"
           (The principle still applies — structured logging is better — but the enforcement is softer)

WRONG:    "Disabling security checks because the user asked for speed"
           (The principle is non-negotiable; only the reporting mode changes)

Rule 2: Explain Every Adjustment

When strictness changes, tell the user why:

"I'm activating stricter dependency checks because you added a payment processing
library. Supply chain security is critical for financial code."

Never silently change enforcement levels.

Rule 3: Log Every Adaptation

Every strictness change is a guardrail audit event:

{
  guardrailLayer: 'adaptive',
  guardrailName: 'feedback-driven-adaptation',
  severity: 'info',
  description: 'Graduated quality gates from Level 1 to Level 2 — project reached 15 source files',
  action: 'allowed',
  resolution: 'automatic graduation based on file count threshold'
}

Rule 4: Revert on Negative Signal

If a downgrade leads to increased violations or a shipped bug:

1. Detect negative signal (new violations in the relaxed area)
2. Re-escalate to previous strictness level
3. Inform user: "Re-enabling [guardrail] — saw [specific issue] after it was relaxed"
4. Log the re-escalation

Session-Level Adaptation

Within a single session, adapt based on the task:

Task TypeAdaptation
Quick bug fixReduce to essential guardrails only (security + tests pass)
New featureFull guardrail suite active
RefactoringEmphasize architectural and test guardrails
Incident responseReduce non-security guardrails; maximize speed to fix
Code reviewAll guardrails in advisory mode (inform, don't block)

Rationalization Pressure Test

ExcuseCounter
"The user seems annoyed by the guardrails"Annoyance is a signal to explain better, not to reduce protection. Improve transparency, not strictness
"This project is small, it doesn't need strict rules"The graduated levels already handle this — Level 0 has only 2 checks. Trust the tier system, don't bypass it
"The guardrail keeps firing on false positives"High false-positive rate means the threshold needs calibration, not removal. Adjust the trigger, keep the guardrail
"Nobody has complained about this before"Absence of complaints is not evidence of safety. Verify guardrails are running, don't assume silence means success
"We should relax rules to move faster"Relaxing security guardrails to move faster is how breaches happen. Adapt scope, not principle
"The override rate is high, so the guardrail is wrong"High override rate may mean the guardrail is miscalibrated OR the team needs training. Investigate, don't disable

Code Review Checklist

  • Adaptation triggers are evidence-based (not feelings or assumptions)
  • Security guardrails are never downgraded below advisory level
  • Every adaptation is logged with reason and timestamp
  • User is informed of every strictness change
  • Downgrade requests are scoped to specific guardrails, not blanket reduction
  • Re-escalation path exists for every downgrade

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.