Skip to content

feat(kiro): expand Kiro validation coverage and docs parity#617

Merged
avifenesh merged 12 commits intomainfrom
feat/kiro-rules-593
Mar 2, 2026
Merged

feat(kiro): expand Kiro validation coverage and docs parity#617
avifenesh merged 12 commits intomainfrom
feat/kiro-rules-593

Conversation

@avifenesh
Copy link
Collaborator

@avifenesh avifenesh commented Mar 2, 2026

Summary

  • add dedicated Kiro validators for powers, hooks, and MCP config (KR-PW-, KR-HK-, KR-MCP-*)
  • expand existing Kiro steering and agent coverage (KIRO-005..009, KR-AG-001..005, KR-HK-005..006)
  • wire new validators into registry/file-type routing and parity tests
  • sync rules source-of-truth/docs/site generation and counts to 267 rules across 36 categories
  • sync locale keys across root + crate locales and harden drift checks for Kiro categories

Validation

  • cargo test --workspace
  • cargo build --release -p agnix-cli -p agnix-lsp -p agnix-mcp
  • python3 scripts/check-rule-counts.py
  • bash scripts/check-locale-sync.sh
  • real-world smoke with target/release/agnix --target kiro --format json on:
    • Theadd/kiro-agents
    • awsdataarchitect/kiro-best-practices
    • dereknguyen269/derek-power
    • cremich/promptz

Closes #593

Copilot AI review requested due to automatic review settings March 2, 2026 21:00
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a substantial expansion of Kiro validation capabilities, adding new rule categories for powers, hooks, and MCP configurations, and enhancing existing checks for steering and agent files. The changes ensure comprehensive static analysis for Kiro components, with all rule counts and documentation updated and synchronized across the project to reflect the increased coverage.

Highlights

  • Expanded Kiro Validation Coverage: Dedicated validators were added for Kiro powers (KR-PW-), hooks (KR-HK-), and MCP configurations (KR-MCP-*), significantly increasing the validation scope for Kiro-related files.
  • Enhanced Existing Kiro Rules: Existing Kiro steering and agent validation rules were expanded, introducing new checks for steering file content (KIRO-005..009) and agent configurations (KR-AG-001..005, KR-HK-005..006).
  • Updated Rule Registry and Documentation: The new validators are integrated into the registry and file-type routing, and all documentation, including rules.json, VALIDATION-RULES.md, and various READMEs, has been updated to reflect the new total of 255 rules across 36 categories.
  • Locale Synchronization: Locale keys across root and crate locales were synchronized, and drift checks for Kiro categories were hardened to maintain consistency.
Changelog
  • AGENTS.md
    • Updated rule and validator counts to reflect the expanded Kiro validation.
  • CHANGELOG.md
    • Updated the total rule count for LSP support to 255.
  • CLAUDE.md
    • Updated rule and validator counts to reflect the expanded Kiro validation.
  • README.md
    • Updated Kiro rule prefixes and file paths to include new categories like hooks, powers, and MCP.
    • Increased the Kiro rule count from 7 to 29.
  • SPEC.md
    • Updated the total rule count from 233 to 255 and category count from 32 to 36.
    • Added new Kiro categories for hooks, MCP, and powers with their respective rule counts.
  • crates/agnix-cli/locales/en.yml
    • Added new English locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-cli/locales/es.yml
    • Added new Spanish locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-cli/locales/zh-CN.yml
    • Added new Chinese locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-cli/tests/cli_integration.rs
    • Updated the expected maximum number of validation rules from 250 to 350 in integration tests.
  • crates/agnix-cli/tests/docs_website_parity.rs
    • Updated Kiro rule prefix checks to include KR-HK-, KR-PW-, and KR-MCP-*.
    • Updated Kiro row file surface checks to include hooks, mcp, and powers paths.
  • crates/agnix-cli/tests/kiro_ci_gate.rs
    • Updated Kiro rule prefix checks to include KR-HK-, KR-PW-, and KR-MCP-*.
    • Updated Kiro file surface checks to include hooks, mcp, and powers paths.
    • Updated the assertion for expected Kiro rule IDs in rules.json.
  • crates/agnix-cli/tests/kiro_fixture_inventory.rs
    • Modified the agnix exit status check to allow both success and exit code 1.
    • Updated the expected diagnostic counts for Kiro powers, agents, and hooks fixtures.
  • crates/agnix-cli/tests/rule_parity.rs
    • Added new Kiro rule prefixes (KR-HK-, KR-PW-, KR-MCP-) to the list of valid prefixes.
    • Updated the fixture coverage mapping to include new Kiro categories: kiro-hooks, kiro-mcp, and kiro-powers.
  • crates/agnix-core/locales/en.yml
    • Added new English locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-core/locales/es.yml
    • Added new Spanish locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-core/locales/zh-CN.yml
    • Added new Chinese locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-core/src/registry.rs
    • Updated the expected builtin validator count from 69 to 71.
    • Registered new KiroPowerValidator, KiroHookValidator, and KiroMcpValidator.
    • Updated test assertions for named validators for KiroPower, KiroHook, and KiroMcp file types.
  • crates/agnix-core/src/rules/kiro_agent.rs
    • Expanded Kiro agent validation rules to include checks for unknown fields, invalid resource protocols, allowed tools subset, invalid model values, and MCP access.
    • Added CLI hook validation rules (KR-HK-005, KR-HK-006) to the Kiro agent validator.
    • Updated the list of rule IDs handled by the KiroAgentValidator.
  • crates/agnix-core/src/rules/kiro_hook.rs
    • Added a new file implementing Kiro IDE hook validation rules (KR-HK-001 to KR-HK-004).
  • crates/agnix-core/src/rules/kiro_mcp.rs
    • Added a new file implementing Kiro MCP validation rules (KR-MCP-001 to KR-MCP-002).
  • crates/agnix-core/src/rules/kiro_power.rs
    • Added a new file implementing Kiro POWER.md validation rules (KR-PW-001 to KR-PW-004).
  • crates/agnix-core/src/rules/kiro_steering.rs
    • Expanded Kiro steering validation rules to include checks for empty body after frontmatter (KIRO-005), secrets in content (KIRO-006), fileMatchPattern without fileMatch inclusion (KIRO-007), unknown frontmatter fields (KIRO-008), and broken inline file references (KIRO-009).
    • Updated the list of rule IDs handled by the KiroSteeringValidator.
  • crates/agnix-core/src/rules/mod.rs
    • Added new modules for Kiro hook, MCP, and power rules.
  • crates/agnix-lsp/README.md
    • Updated the total rule count in the LSP README to 255.
  • crates/agnix-lsp/locales/en.yml
    • Added new English locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-lsp/locales/es.yml
    • Added new Spanish locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-lsp/locales/zh-CN.yml
    • Added new Chinese locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • crates/agnix-mcp/tests/mcp_tests.rs
    • Updated the rule count assertion to dynamically fetch the expected count from rules.json.
  • crates/agnix-rules/rules.json
    • Updated the total rule count from 233 to 255.
    • Added new rule definitions for Kiro steering (KIRO-005 to KIRO-009), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), MCP (KR-MCP-001 to KR-MCP-002), and powers (KR-PW-001 to KR-PW-004).
    • Updated category counts and descriptions for Kiro agents, and added new categories for Kiro steering, hooks, MCP, and powers.
  • editors/vscode/README.md
    • Updated the total rule count in the VS Code extension README to 255.
  • knowledge-base/INDEX.md
    • Updated the total rule count from 233 to 255 and category count from 32 to 36.
    • Updated the rule count for Kiro Agents and Kiro Steering, and added new categories for Kiro Hooks, Kiro MCP, and Kiro Powers.
  • knowledge-base/README.md
    • Updated the total rule count in the knowledge base README to 255.
  • knowledge-base/VALIDATION-RULES.md
    • Added new rule definitions for Kiro agents (KR-AG-001 to KR-AG-005), CLI hooks (KR-HK-005, KR-HK-006), steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), and IDE hooks (KR-HK-001 to KR-HK-004), and MCP (KR-MCP-001 to KR-MCP-002).
    • Updated the total rule count in the summary and implementation sections.
  • knowledge-base/rules.json
    • Updated the total rule count from 233 to 255.
    • Added new rule definitions for Kiro steering (KIRO-005 to KIRO-009), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), MCP (KR-MCP-001 to KR-MCP-002), and powers (KR-PW-001 to KR-PW-004).
    • Updated category counts and descriptions for Kiro agents, and added new categories for Kiro steering, hooks, MCP, and powers.
  • locales/en.yml
    • Added new English locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • locales/es.yml
    • Added new Spanish locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • locales/zh-CN.yml
    • Added new Chinese locale entries for Kiro steering (KIRO-005 to KIRO-009), powers (KR-PW-001 to KR-PW-004), agents (KR-AG-001 to KR-AG-005), hooks (KR-HK-001 to KR-HK-006), and MCP (KR-MCP-001 to KR-MCP-002) validation rules.
  • scripts/check-rule-counts.py
    • Updated category mappings to include new Kiro categories: kiro-hooks, kiro-mcp, and kiro-powers.
  • scripts/generate-docs-rules.py
    • Updated category mappings to include new Kiro categories: kiro-hooks, kiro-mcp, and kiro-powers.
  • website/docs/rules/generated/kiro-005.md
    • Added new documentation for the KIRO-005 rule: 'Empty Steering Body After Frontmatter'.
  • website/docs/rules/generated/kiro-006.md
    • Added new documentation for the KIRO-006 rule: 'Secrets Detected in Steering File'.
  • website/docs/rules/generated/kiro-007.md
    • Added new documentation for the KIRO-007 rule: 'fileMatchPattern Without fileMatch Inclusion'.
  • website/docs/rules/generated/kiro-008.md
    • Added new documentation for the KIRO-008 rule: 'Unknown Kiro Steering Frontmatter Field'.
  • website/docs/rules/generated/kiro-009.md
    • Added new documentation for the KIRO-009 rule: 'Broken Inline File Reference in Steering'.
  • website/docs/rules/generated/kr-ag-001.md
    • Added new documentation for the KR-AG-001 rule: 'Unknown Field in Kiro Agent JSON'.
  • website/docs/rules/generated/kr-ag-002.md
    • Added new documentation for the KR-AG-002 rule: 'Invalid Kiro Agent Resource Protocol'.
  • website/docs/rules/generated/kr-ag-003.md
    • Added new documentation for the KR-AG-003 rule: 'allowedTools Not Subset of tools'.
  • website/docs/rules/generated/kr-ag-004.md
    • Added new documentation for the KR-AG-004 rule: 'Invalid Kiro Agent Model Value'.
  • website/docs/rules/generated/kr-ag-005.md
    • Added new documentation for the KR-AG-005 rule: 'Kiro Agent Has No MCP Access'.
  • website/docs/rules/generated/kr-hk-001.md
    • Added new documentation for the KR-HK-001 rule: 'Invalid Kiro IDE Hook Event Type'.
  • website/docs/rules/generated/kr-hk-002.md
    • Added new documentation for the KR-HK-002 rule: 'Kiro File Hook Missing Patterns'.
  • website/docs/rules/generated/kr-hk-003.md
    • Added new documentation for the KR-HK-003 rule: 'Kiro IDE Hook Missing Action'.
  • website/docs/rules/generated/kr-hk-004.md
    • Added new documentation for the KR-HK-004 rule: 'Kiro Tool Hook Missing toolTypes Filter'.
  • website/docs/rules/generated/kr-hk-005.md
    • Added new documentation for the KR-HK-005 rule: 'Invalid Kiro CLI Hook Event Key'.
  • website/docs/rules/generated/kr-hk-006.md
    • Added new documentation for the KR-HK-006 rule: 'Kiro CLI Hook Missing Command'.
  • website/docs/rules/generated/kr-mcp-001.md
    • Added new documentation for the KR-MCP-001 rule: 'Kiro MCP Server Missing command and url'.
  • website/docs/rules/generated/kr-mcp-002.md
    • Added new documentation for the KR-MCP-002 rule: 'Hardcoded Secrets in Kiro MCP env'.
  • website/docs/rules/generated/kr-pw-001.md
    • Added new documentation for the KR-PW-001 rule: 'Missing Required POWER.md Frontmatter Fields'.
  • website/docs/rules/generated/kr-pw-002.md
    • Added new documentation for the KR-PW-002 rule: 'Empty POWER.md Keywords Array'.
  • website/docs/rules/generated/kr-pw-003.md
    • Added new documentation for the KR-PW-003 rule: 'Empty POWER.md Body'.
  • website/docs/rules/generated/kr-pw-004.md
    • Added new documentation for the KR-PW-004 rule: 'Invalid Adjacent Power mcp.json Structure'.
  • website/docs/rules/index.md
    • Updated the total rule count in the rules reference to 255.
    • Added new Kiro steering, agent, hook, MCP, and power rules to the index.
  • website/src/data/siteData.json
    • Updated the total rule count from 233 to 255 and category count from 32 to 36.
Activity
  • The pull request author, avifenesh, provided a comprehensive summary of the changes in the PR description.
  • Validation steps were outlined, including cargo test --workspace, cargo build --release -p agnix-cli -p agnix-lsp -p agnix-mcp, python3 scripts/check-rule-counts.py, bash scripts/check-locale-sync.sh, and real-world smoke tests on various Kiro targets.
  • The pull request addresses and closes issue Add Kiro skill, hook, spec, and powers validation rules #593.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands the Kiro tool surface validation in agnix-core (new validators + additional steering/agent rules) and updates the rules catalog + docs/website/locales to maintain parity across the repo.

Changes:

  • Added Kiro validators for powers (POWER.md), IDE hooks (.kiro.hook), and Kiro MCP settings (.kiro/settings/mcp.json), and extended Kiro steering + agent validation coverage.
  • Updated registry routing, parity gates, fixture expectations, and rule-count checks to include new Kiro categories and the new total (255 rules / 36 categories).
  • Synced knowledge-base source-of-truth, generated website docs, and locale keys across root + crates.

Reviewed changes

Copilot reviewed 41 out of 63 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/src/data/siteData.json Updates site-level rule/category totals.
website/docs/rules/index.md Updates rules index totals + adds rows for new Kiro rule IDs.
website/docs/rules/generated/kr-pw-004.md Generated documentation page for KR-PW-004.
website/docs/rules/generated/kr-pw-003.md Generated documentation page for KR-PW-003.
website/docs/rules/generated/kr-pw-002.md Generated documentation page for KR-PW-002.
website/docs/rules/generated/kr-pw-001.md Generated documentation page for KR-PW-001.
website/docs/rules/generated/kr-mcp-002.md Generated documentation page for KR-MCP-002.
website/docs/rules/generated/kr-mcp-001.md Generated documentation page for KR-MCP-001.
website/docs/rules/generated/kr-hk-006.md Generated documentation page for KR-HK-006.
website/docs/rules/generated/kr-hk-005.md Generated documentation page for KR-HK-005.
website/docs/rules/generated/kr-hk-004.md Generated documentation page for KR-HK-004.
website/docs/rules/generated/kr-hk-003.md Generated documentation page for KR-HK-003.
website/docs/rules/generated/kr-hk-002.md Generated documentation page for KR-HK-002.
website/docs/rules/generated/kr-hk-001.md Generated documentation page for KR-HK-001.
website/docs/rules/generated/kr-ag-005.md Generated documentation page for KR-AG-005.
website/docs/rules/generated/kr-ag-004.md Generated documentation page for KR-AG-004.
website/docs/rules/generated/kr-ag-003.md Generated documentation page for KR-AG-003.
website/docs/rules/generated/kr-ag-002.md Generated documentation page for KR-AG-002.
website/docs/rules/generated/kr-ag-001.md Generated documentation page for KR-AG-001.
website/docs/rules/generated/kiro-009.md Generated documentation page for KIRO-009.
website/docs/rules/generated/kiro-008.md Generated documentation page for KIRO-008.
website/docs/rules/generated/kiro-007.md Generated documentation page for KIRO-007.
website/docs/rules/generated/kiro-006.md Generated documentation page for KIRO-006.
website/docs/rules/generated/kiro-005.md Generated documentation page for KIRO-005.
scripts/generate-docs-rules.py Adds new Kiro category labels for docs generation.
scripts/check-rule-counts.py Adds new Kiro categories to rule-count/category checks.
locales/zh-CN.yml Adds localized messages for new Kiro rules.
locales/es.yml Adds localized messages for new Kiro rules.
locales/en.yml Adds localized messages for new Kiro rules.
knowledge-base/rules.json Adds new Kiro rules + category metadata; updates totals.
knowledge-base/VALIDATION-RULES.md Adds human-readable sections for new Kiro rules + updates totals/coverage table.
knowledge-base/README.md Updates rule totals in KB navigation.
knowledge-base/INDEX.md Updates totals and category tables to include new Kiro categories.
editors/vscode/README.md Updates VS Code extension docs for new rule total.
crates/agnix-rules/rules.json Syncs packaged rules catalog with knowledge-base (total 255).
crates/agnix-mcp/tests/mcp_tests.rs Makes rule-count test derive expected count from knowledge-base.
crates/agnix-lsp/locales/zh-CN.yml Adds localized messages for new Kiro rules (LSP).
crates/agnix-lsp/locales/es.yml Adds localized messages for new Kiro rules (LSP).
crates/agnix-lsp/locales/en.yml Adds localized messages for new Kiro rules (LSP).
crates/agnix-lsp/README.md Updates LSP docs for new rule total.
crates/agnix-core/src/rules/mod.rs Exposes new Kiro validator modules.
crates/agnix-core/src/rules/kiro_steering.rs Extends steering validator with KIRO-005..009 (secrets, body, unknown keys, refs).
crates/agnix-core/src/rules/kiro_power.rs Adds POWER.md validator KR-PW-001..004.
crates/agnix-core/src/rules/kiro_mcp.rs Adds Kiro MCP settings validator KR-MCP-001..002.
crates/agnix-core/src/rules/kiro_hook.rs Adds IDE hook validator KR-HK-001..004.
crates/agnix-core/src/rules/kiro_agent.rs Extends agent validator with KR-AG-001..005 and CLI hook rules KR-HK-005..006.
crates/agnix-core/src/registry.rs Wires new validators into file-type routing and updates expected counts.
crates/agnix-core/locales/zh-CN.yml Adds localized messages for new Kiro rules (core).
crates/agnix-core/locales/es.yml Adds localized messages for new Kiro rules (core).
crates/agnix-core/locales/en.yml Adds localized messages for new Kiro rules (core).
crates/agnix-cli/tests/rule_parity.rs Updates parity to include new Kiro prefixes/categories and fixture mapping.
crates/agnix-cli/tests/kiro_fixture_inventory.rs Adjusts CLI runnable fixture expectations (exit codes + diagnostic counts).
crates/agnix-cli/tests/kiro_ci_gate.rs Extends CI gate assertions for new Kiro prefixes/surfaces.
crates/agnix-cli/tests/docs_website_parity.rs Extends docs/website parity checks for new Kiro prefixes/surfaces.
crates/agnix-cli/tests/cli_integration.rs Updates SARIF rules-count expectation bounds for new total.
crates/agnix-cli/locales/zh-CN.yml Adds localized messages for new Kiro rules (CLI).
crates/agnix-cli/locales/es.yml Adds localized messages for new Kiro rules (CLI).
crates/agnix-cli/locales/en.yml Adds localized messages for new Kiro rules (CLI).
SPEC.md Updates spec-level totals and Kiro surface counts.
README.md Updates supported-tools table row for Kiro (prefixes, counts, file surfaces).
CLAUDE.md Updates repo docs for new totals and validator count.
CHANGELOG.md Updates docs references to current rule totals.
AGENTS.md Updates repo docs for new totals and validator count.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2303fdeaae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request significantly expands the validation coverage for Kiro configurations by adding new validators for powers, hooks, and MCP configs, and expanding existing agent and steering rules. While the overall contribution is high-quality with comprehensive updates to documentation, localization files, and test suites, a path traversal vulnerability was identified in the KiroSteeringValidator. This vulnerability allows for file existence probing on the system where the linter is executed. It is recommended to apply path sanitization to mitigate this risk.

Copilot AI review requested due to automatic review settings March 2, 2026 21:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 42 out of 64 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

crates/agnix-core/src/rules/kiro_mcp.rs:24

  • seems_plaintext_secret duplicates the same helper already present in rules/mcp.rs (and similar logic in other validators). Consider moving this into a shared helper (e.g., in schemas::common or rules utils) to keep the plaintext-secret heuristic consistent across MCP and Kiro MCP rules and avoid future drift.
fn seems_plaintext_secret(value: &str) -> bool {
    let trimmed = value.trim();
    !trimmed.is_empty()
        && !trimmed.starts_with("${")
        && !trimmed.starts_with("$(")
        && !trimmed.starts_with("{{")
}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d3900b734

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings March 2, 2026 21:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 46 out of 69 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53c35ea2b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings March 2, 2026 21:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 47 out of 70 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f40fb923ff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@avifenesh avifenesh force-pushed the feat/kiro-rules-593 branch from f40fb92 to 5bd23f6 Compare March 2, 2026 22:11
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5bd23f6476

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings March 2, 2026 22:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 46 out of 68 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

crates/agnix-cli/tests/cli_integration.rs:192

  • This comment says there are 255 rules in VALIDATION-RULES.md, but the repo now reports 267 rules (e.g., knowledge-base/rules.json total_rules and multiple updated docs). Please update the comment to match the current total, or change it to derive the value dynamically to avoid future drift.
    // Use threshold range to avoid brittleness when rules are added/removed,
    // while still catching major regressions (missing rules) or explosions.
    // As of writing, there are 255 rules documented in VALIDATION-RULES.md.
    assert!(
        rules.len() >= 70,

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@avifenesh avifenesh merged commit 6730fbf into main Mar 2, 2026
18 checks passed
@avifenesh avifenesh deleted the feat/kiro-rules-593 branch March 2, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Kiro skill, hook, spec, and powers validation rules

2 participants