AI SummaryHeuristic scoring (no AI key configured).
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "ai-sdlc--agent-poc — Cursor Rules" prompt rules to my project. Repository: https://github.com/DEFRA/ai-sdlc--agent-poc Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Git repository for ai-sdlc--agent-poc
Group related tools into collections
weather_tools = [get_weather] database_tools = [query_db, update_db] file_tools = [read_file, write_file]
Create the agent with tools bound to the model
model_with_tools = model.bind_tools(tools) agent = create_react_agent(model_with_tools, tools) `
Core Principles
• Tool Definition: Define tools using LangChain's @tool decorator • Type Safety: Use Pydantic models for tool inputs and outputs • ReAct Integration: Use LangGraph's prebuilt ReAct agent for tool orchestration • State Management: Maintain consistent state handling across tool executions • Error Handling: Implement robust error handling for tool failures
Tool Definition
`python from langchain_core.tools import tool from pydantic import BaseModel, Field class WeatherInput(BaseModel): """Input schema for weather tool.""" city: str = Field(..., description="The city to get weather for") @tool def get_weather(city: str) -> str: """ Get the weather for a given city. Args: city: Name of the city to get weather for Returns: Current weather conditions for the city """ return f"The weather in {city} is sunny." `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts