agentleFS
epiccountyepiccounty/aws-toolkit/skills/aws-security/SKILL.md

aws-security

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

PII/sensitive data identification and handling, destructive command control, and the secret-entry protocol. Applies to every aws-* skill. Triggers: "sensitive data", "민감정보", "pii", "secret", "시크릿", "password", "비밀번호", "delete", "삭제", "destructive", "파괴적", "secrets manager".

  • Reads credentials

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. aws/agent-toolkit-for-aws★ 2.8ksame name
    2. delorenj/skills★ 15same name
    3. eliecer2000/kiro-bootstrap★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never expose the following in agent output, summaries, code, commits, or logs:

    line 14
  2. Very specific:

    When CLI output mixes them in, exclude the field via --query before summarizing.

    line 24
  3. Distinctive:

    Never ask the user to paste a secret into chat — agents must not request it, users must not do it.

    line 31
  4. Distinctive:

    When a command needs a real value: hand over a template and the user runs it in their own terminal:

    line 34
  5. Very specific:

    Impact list first: before deleting, output the affected resource list, count, and names (describe/list + --query)

    line 53
  6. Distinctive:

    Explicit approval: never execute without showing the list — not "delete?" but "about to delete the 3 resources below — approve?"

    line 56

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

AWS Security Rules (common to every aws-* task)

1. Identifying sensitive data

Never expose the following in agent output, summaries, code, commits, or logs:

ClassExamples
Credentialsaccess keys (AKIA...), secret keys, tokens (Bearer ...), pem contents
PIInames, emails, phone numbers, national IDs, bank/card numbers, full home paths (~/...)
InfrastructureDB connection strings, .env values, internal domains, SSH host keys
AWSSecrets Manager / Parameter Store plaintext, credential report raw content

On detection: replace with <REDACTED> or a placeholder and add a one-line warning. When CLI output mixes them in, exclude the field via --query before summarizing.

2. Secret-entry protocol (hard rule for agents)

Principle: secret values never exist anywhere the agent can see — not in suggested commands, not in output, not in the transcript.

  1. Never ask the user to paste a secret into chat — agents must not request it, users must not do it.
  2. Suggested commands carry references only ($SECRET_ID, --secret-id, an env var name) — never values.
  3. When a command needs a real value: hand over a template and the user runs it in their own terminal:
    • The ! <command> prefix is also forbidden — its input and output are visible to the agent in the session transcript
    • The user reports back only success/failure
  4. Secrets Manager lookups follow the same rule: the agent must never receive the output of get-secret-value. The user runs it themselves, or the application runtime decrypts.
  5. Writing .env/config files: the agent writes key names with placeholders only; the user fills values in an editor.

Rationale: a secret that enters the transcript cannot be removed — it persists in caches, logs, and summaries.

3. Destructive command control

Targets: terminate/delete/rb/rm/detach, put-* (overwrites), update* --replace, IAM policy edits, cloudformation delete-stack, s3api delete-objects — anything irreversible.

Procedure (order is mandatory):

  1. Impact list first: before deleting, output the affected resource list, count, and names (describe/list + --query)
  2. Dry-run whenever available: --dry-run
  3. Explicit approval: never execute without showing the list — not "delete?" but "about to delete the 3 resources below — approve?"
  4. Minimum scope: no --all, no wildcards, no unconditioned delete-objects — explicit IDs/names only
  5. Verify after execution: re-query and report the result

For IAM/security-group changes, snapshot the current values (json output) to a file before modifying — that is the rollback record.

4. Where these rules apply

  • Main thread: follow this skill
  • aws-ops subagent: the same rules are embedded in agents/aws-ops.md (skill loading is not guaranteed inside agents)
  • The SSO profile itself is effectively the secret-avoidance mechanism — if something demands long-lived keys, refuse and propose the SSO path instead

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.