Skip to content

feat: [kit] Add Local Infrastructure Risk Analyzer for municipal project risk assessment#255

Open
shwetaa188 wants to merge 1 commit into
Lamatic:mainfrom
shwetaa188:agentkit-challenge
Open

feat: [kit] Add Local Infrastructure Risk Analyzer for municipal project risk assessment#255
shwetaa188 wants to merge 1 commit into
Lamatic:mainfrom
shwetaa188:agentkit-challenge

Conversation

@shwetaa188

@shwetaa188 shwetaa188 commented Jul 16, 2026

Copy link
Copy Markdown

PR Checklist

1. Select Contribution Type

  • [ x] Kit (kits/<category>/<kit-name>/)
  • Bundle (bundles/<bundle-name>/)
  • Template (templates/<template-name>/)

2. General Requirements

  • [x ] PR is for one project only (no unrelated changes)
  • [ x] No secrets, API keys, or real credentials are committed
  • [ x] Folder name uses kebab-case and matches the flow ID
  • [x ] All changes are documented in README.md (purpose, setup, usage)

3. File Structure (Check what applies)

  • [x ] config.json present with valid metadata (name, description, tags, steps, author, env keys)
  • [ x] All flows in flows/<flow-name>/ (where applicable) include:
    • config.json (Lamatic flow export)
    • inputs.json
    • meta.json
    • README.md
  • .env.example with placeholder values only (kits only)
  • [x ] No hand‑edited flow config.json node graphs (changes via Lamatic Studio export)

4. Validation

  • [x ] npm install && npm run dev works locally (kits: UI runs; bundles/templates: flows are valid)
  • [ x] PR title is clear (e.g., [kit] Add <name> for <use case>)
  • GitHub Actions workflows pass (all checks are green)
  • All CodeRabbit or other PR review comments are addressed and resolved
  • [x ] No unrelated files or projects are modified
  • Added the Local Infrastructure Risk Analyzer kit for municipal project risk assessment.
  • Added README.md documenting the agent’s purpose, workflow, inputs, and Stakeholder Risk Matrix output.
  • Added infra-risk-flow.json flow:
    • Webhook trigger accepts project_description and location.
    • Web Search tool node gathers infrastructure issues and local disruptions for the specified location.
    • LLM node uses Llama 3.3 with the risk-analysis prompt to assess project risks.
    • Returns a structured output containing status and analysis results.
  • Added risk_analysis.prompt, which directs the model to identify environmental, community, and structural risks and provide impact levels, affected stakeholders, and mitigation strategies.
  • Added the Groq Llama 3.3 model configuration with temperature and token limits.
  • Added lamatic.config.ts with kit metadata, author information, tags, version, and workflow execution setup.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Changes

Infrastructure Risk Analyzer

Layer / File(s) Summary
Template and model setup
kits/infrastructure-risk-analyzer/lamatic.config.ts, kits/infrastructure-risk-analyzer/model-configs/llama-3.3.json
Adds template metadata, execution-step configuration, and Groq Llama model defaults.
Risk analysis workflow
kits/infrastructure-risk-analyzer/flows/infra-risk-flow.json, kits/infrastructure-risk-analyzer/prompts/risk_analysis.prompt, kits/infrastructure-risk-analyzer/README.md
Adds webhook inputs, location-based web search, prompt-driven risk analysis, structured output fields, and workflow documentation.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is clear, concise, and matches the new kit for municipal project risk assessment.
Description check ✅ Passed The description follows the template and covers the required checklist, with only a few items left unchecked.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shwetaa188

Copy link
Copy Markdown
Author

/label agentkit-challenge

@akshatvirmani akshatvirmani changed the title [kit] Add Local Infrastructure Risk Analyzer for municipal project risk assessment feat: [kit] Add Local Infrastructure Risk Analyzer for municipal project risk assessment Jul 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

:robot_face: AgentKit Structural Validation

New Contributions Detected

  • Template: kits/infrastructure-risk-analyzer

Check Results

Check Status
No edits to existing kits ✅ Pass
Required root files present ❌ Fail
Flow .ts files present ❌ Fail
lamatic.config.ts valid ✅ Pass
No changes outside kits/ ✅ Pass

❌ Errors

  • Missing agent.md in kits/infrastructure-risk-analyzer
  • Missing constitutions/default.md in kits/infrastructure-risk-analyzer
  • No .ts flow files found in kits/infrastructure-risk-analyzer/flows/ — each flow must be a .ts file exported from Lamatic Studio

⚠️ Warnings

  • lamatic.config.ts in kits/infrastructure-risk-analyzer — links.github should point to kits/infrastructure-risk-analyzer

🛑 Please fix the errors above before this PR can be merged.

Refer to CONTRIBUTING.md and CLAUDE.md for the expected folder structure.

@github-actions

Copy link
Copy Markdown
Contributor

Failure recorded at 2026-07-20T09:55:25Z UTC. If this PR is not fixed within 4 weeks it will be automatically closed.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/infrastructure-risk-analyzer/README.md`:
- Around line 5-8: Update the README.md for the infrastructure risk analyzer to
include the kit’s mandatory human-readable setup guide, using the repository’s
established setup-guide content or format. Also add the required blank line
after the heading and ensure the file ends with a trailing newline, without
changing the existing workflow description.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5bd8c501-2e88-48ad-a18e-6b758dbe0ee5

📥 Commits

Reviewing files that changed from the base of the PR and between 0ada432 and 730289c.

📒 Files selected for processing (5)
  • kits/infrastructure-risk-analyzer/README.md
  • kits/infrastructure-risk-analyzer/flows/infra-risk-flow.json
  • kits/infrastructure-risk-analyzer/lamatic.config.ts
  • kits/infrastructure-risk-analyzer/model-configs/llama-3.3.json
  • kits/infrastructure-risk-analyzer/prompts/risk_analysis.prompt

Comment on lines +5 to +8
## How it works
1. **Input:** Takes a project proposal description or text documentation.
2. **Analysis:** Orchestrates workflow nodes to extract risk parameters and cross-reference potential local impacts.
3. **Output:** Formats a clean, actionable **Stakeholder Risk Matrix**. No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Incorporate the mandatory setup guide and resolve formatting anomalies.

Agent, we have a breach in protocol. The dossier (README.md) is missing critical operational parameters—specifically, the mandatory human-readable setup guide required for field deployment. Furthermore, our static analysis intercepts indicate minor formatting anomalies (missing blank line after the heading and missing trailing newline). As per coding guidelines, each kit must contain a README.md file with a human-readable setup guide. Your mission, should you choose to accept it, is to integrate the setup guide and resolve the spacing issues to ensure the package meets agency standards.

🕵️‍♂️ Proposed mission parameters (fix)
-## How it works
-1. **Input:** Takes a project proposal description or text documentation.
-2. **Analysis:** Orchestrates workflow nodes to extract risk parameters and cross-reference potential local impacts.
-3. **Output:** Formats a clean, actionable **Stakeholder Risk Matrix**.
+## How it works
+
+1. **Input:** Takes a project proposal description or text documentation.
+2. **Analysis:** Orchestrates workflow nodes to extract risk parameters and cross-reference potential local impacts.
+3. **Output:** Formats a clean, actionable **Stakeholder Risk Matrix**.
+
+## Setup Guide
+
+1. Clone the repository and navigate to the `kits/infrastructure-risk-analyzer` directory.
+2. Deploy the kit using the Lamatic platform.
+3. Configure any required webhook endpoints or API keys.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## How it works
1. **Input:** Takes a project proposal description or text documentation.
2. **Analysis:** Orchestrates workflow nodes to extract risk parameters and cross-reference potential local impacts.
3. **Output:** Formats a clean, actionable **Stakeholder Risk Matrix**.
## How it works
1. **Input:** Takes a project proposal description or text documentation.
2. **Analysis:** Orchestrates workflow nodes to extract risk parameters and cross-reference potential local impacts.
3. **Output:** Formats a clean, actionable **Stakeholder Risk Matrix**.
## Setup Guide
1. Clone the repository and navigate to the `kits/infrastructure-risk-analyzer` directory.
2. Deploy the kit using the Lamatic platform.
3. Configure any required webhook endpoints or API keys.
🧰 Tools
🪛 markdownlint-cli2 (0.23.0)

[warning] 5-5: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


[warning] 8-8: Files should end with a single newline character

(MD047, single-trailing-newline)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/infrastructure-risk-analyzer/README.md` around lines 5 - 8, Update the
README.md for the infrastructure risk analyzer to include the kit’s mandatory
human-readable setup guide, using the repository’s established setup-guide
content or format. Also add the required blank line after the heading and ensure
the file ends with a trailing newline, without changing the existing workflow
description.

Sources: Coding guidelines, Linters/SAST tools

@github-actions

Copy link
Copy Markdown
Contributor

Hi @shwetaa188! 👋

Before this PR can be reviewed by maintainers, please resolve all comments and requested changes from the CodeRabbit automated review.

Steps to follow:

  1. Read through all CodeRabbit comments carefully
  2. Address each issue raised (or reply explaining why you disagree)
  3. Push your fixes as new commits
  4. Once all issues are resolved, comment here so we can re-review

This helps keep the review process efficient for everyone. Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant