agentleFS
aws-solutionsaws-solutions/konductor/skills/constraints/SKILL.md

constraints

Skill9 starsChanged 2 months agoApache-2.0View on GitHub

MUST USE for every interaction across all Konductor agents. Defines the non-negotiable code quality, security, and verification rules that apply regardless of task or context.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    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:

    After 2 failed fix attempts for the same error, STOP.

    line 48
  2. Distinctive:

    Only then propose a fix

    line 52
  3. Distinctive:

    If you cannot explain the cause chain from root cause → symptom, research FIRST, fix SECOND.

    line 56
  4. Distinctive:

    When responding, state whether you are working from:

    line 60
  5. Distinctive:

    ALWAYS DO rule not followed

    line 77

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Constraints

Overview

Hard rules that ALL Konductor agents must follow in every interaction. These are non-negotiable — violations are treated as CRITICAL failures regardless of context.

Usage

This skill is always active. It applies to every task across all Konductor agents. No explicit activation needed.

Core Rules

NEVER DO

  1. No type escape hatches — Never use as any, @ts-ignore, or @ts-expect-error in production code
  2. No test deletion — Never delete or skip tests to make builds pass — fix the code instead
  3. No broken commits — Never commit code that doesn't compile
  4. No speculation — Never speculate about unread code — read the file first
  5. No broken state — Never leave code in a broken state between steps
  6. No silent scope reduction — Never reduce scope without explicit user approval (no "demo", "skeleton", or "simplified" versions)
  7. No stripping documentation — Never remove existing comments, JSDoc blocks, or logging statements unless explicitly asked
  8. No secrets in code — Never include secrets, API keys, or credentials in source code
  9. No bypassing safety — Never disable security protections (termination protection, MFA delete, deletion protection, backup retention) without explicit user confirmation
  10. No unnecessary skill-discovery lookups — Never perform a skill-discovery search when the skill name is known — read directly from .kiro/skills/{skill-name}/SKILL.md. Only search available skills to discover one when the skill name or local path is unknown.

ALWAYS DO

  1. Read before edit — Always read the complete file before making changes
  2. Follow existing patterns — Always match the conventions already in the codebase
  3. Maker-checker — Always run the maker-checker pattern: generate artifact → validate with the corresponding checker skill before presenting to the user
  4. Backward compatibility — Always preserve backward compatibility unless breaking changes are explicitly approved
  5. Comment complex logic — Always add inline comments for non-obvious or complex logic
  6. Structured logging — Always use structured logging with correlation IDs in service code
  7. Verify before done — Always verify changes compile and tests pass before declaring a task complete
  8. Severity ordering — Always present findings as CRITICAL → IMPORTANT → SUGGESTION

Failure Recovery

2-Strike Circuit Breaker

After 2 failed fix attempts for the same error, STOP. Do not attempt a third fix. Instead:

  1. Research the root cause (read docs, search codebase, check dependencies)
  2. Explain the root cause chain: root cause → intermediate effects → observed symptom
  3. Only then propose a fix

Unknown Systems

If you cannot explain the cause chain from root cause → symptom, research FIRST, fix SECOND. Do not guess at fixes for systems you don't understand.

Acknowledge Uncertainty

When responding, state whether you are working from:

  • Documented knowledge — you read the relevant code/docs
  • Inference — you are reasoning from patterns but haven't verified
  • Guess — you are speculating and the user should verify

Quality Gate

CRITICAL (immediate stop):

  • Any NEVER DO rule violated
  • Artifact presented to user without checker validation (maker-checker bypass)
  • Code left in non-compiling state
  • Secrets or credentials in source code

IMPORTANT (must fix before proceeding):

  • ALWAYS DO rule not followed
  • Circuit breaker not triggered after 2 failed attempts
  • Uncertainty level not disclosed when relevant

SUGGESTION:

  • Could improve comment coverage on complex logic
  • Could strengthen logging with additional context fields

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.