Instructions review

From y-miyazaki/terraform-aws-base · View interactive version

Instructions review is an AI agent skill from the GitHub repository y-miyazaki/terraform-aws-base. Review instruction and rule files for structure, consistency, applyTo precision, and portable cross-references — package sources (`*.instructions.md`) and distributed agent rule targets (`.cursor/rules/*.mdc`, `.claude/rules/*.md`, `.kiro/steering/*.md`). Use when reviewing instruction PRs, audits,

How to use this skill

Skill file

Input

Output Specification

Return structured Markdown in accordance with references/common-output-format.md. That file is the source of truth for the output contract.

Skill-local addition: insert a ## Targets section directly after the # <Result Title> heading, before ## Checks Summary, with one row per target file:

## Targets

| File     | Status                |
| -------- | --------------------- |
| `<path>` | `reviewed`, `missing` |

Then, in ## Issues and ## Checks (Failed/Deferred Only), prefix each entry with the file path when more than one target is reviewed. Give each Deferred entry its reason.

Execution Scope

USE FOR:

DO NOT USE FOR:

Reference Files Guide

Workflow

  1. Read PR context and identify target instruction files.
  2. If a target file does not exist, mark it missing in ## Targets (not a check failure, so no ## Issues entry) and continue remaining targets. Process all target files independently — one failure does not stop the review of others.
  3. If PR context is unavailable, identify targets from the user prompt and review the files alone. No checklist item requires PR context, so nothing is deferred for its absence.
  4. Verify required chapter order (Scope → Standards → Guidelines → Testing and Validation → Security Guidelines), then review checklist priorities and collect failed/deferred ItemIDs.
  5. Output required report sections per references/common-output-format.md.

Severity and Status Rules

| Status | When to use |

| -------- | ------------------------------------------------------------------------------------------- |

| Failed | Check evaluated and issue confirmed with concrete evidence (file + line or missing element) |

| Deferred | Check cannot be evaluated — its category file is unavailable |

| Passed | Check evaluated and no issue found (counted in summary only) |

Key evaluation criteria (inline summary of common-checklist):

Error Handling

| Condition | Severity | Action |

| ------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------- |

| common-checklist.md unavailable | Fatal | Stop, report missing dependency |

| common-output-format.md unavailable | Recoverable | Note missing file; emit ## Checks Summary, ## Checks (Failed/Deferred Only), and ## Issues only |

| Category reference file missing | Recoverable | Defer checks from that category, note missing file in report |

| All category files missing | Fatal | Stop, report "no evaluation criteria available" |

| Target instruction/rule file does not exist | Recoverable | Mark the file missing in ## Targets, continue remaining targets |

| All target files missing | Fatal | Set Status: failed; stop; ## Issues cause entry: "no reviewable instruction files found" |

Examples

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.