SkillAgentSearch skills...

agent-development

Guidelines for developing pydantic-ai agents, tools, and handlers

Install / Use

npx skills add divar-ir/ai-doc-gen

Installs into whichever agent you are using.

About this skill
📐

Cursor Rules

Cursor IDE rules (v2)

Quality Score

81/100

Supported Platforms

Cursor

Our assessment of agent-development

agent-development scores 81/100 on our quality scale, 743rd of 968 AI & Machine Learning skills we index.

Its Cursor Rules is 2.9 KB long, split into 6 sections with 2 code examples: a solid amount of guidance for an agent.

It has 763 GitHub stars, a meaningful sign that others use it.

Substance
26/30
Structure
16/20
Description
12/15
Adoption
12/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 3 months ago, so agent-development is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-10-07. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

agent-development compared with similar skills

All 4 of these similar skills score higher than agent-development; compare them before choosing.

SkillScoreStarsUpdatedFormat
agent-development (this skill)by divar-ir817633mo agoCursor Rules
claude-memby thedotmack10097.1ktodayCLAUDE.md
Agent-Reachby Panniantong10092.6k21d agoCLAUDE.md
Understand-Anythingby Egonex-AI10085.4k1d agoCLAUDE.md
headroomby headroomlabs-ai10074.5ktodayCLAUDE.md

Frequently asked questions

How do I install agent-development?
Run npx skills add divar-ir/ai-doc-gen. The install tabs above show the steps for each supported agent.
Which AI agents does agent-development work with?
It is written for Cursor, as a Cursor Rules file. Other agents that read the same format can often use it too.
Is agent-development safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is agent-development still maintained?
The repository was last updated about 3 months ago, so agent-development is actively maintained.

description: Guidelines for developing pydantic-ai agents, tools, and handlers globs:

  • "src/agents/**/*.py"
  • "src/handlers/**/*.py" alwaysApply: false

Agent Development

Agent construction

Agents are built as properties on coordinator classes (AnalyzerAgent, DocumenterAgent, AIRulesGeneratorAgent):

@property
def _structure_analyzer_agent(self) -> Agent:
    model, model_settings = self._llm_model
    return Agent(
        name="Structure Analyzer",
        model=model,
        model_settings=model_settings,
        system_prompt=self._render_prompt("agents.structure_analyzer.system_prompt"),
        tools=[FileReadTool().get_tool(), ListFilesTool().get_tool()],
        retries=config.ANALYZER_AGENT_RETRIES,
    )
  • Model setup is OpenAI-compatible only: OpenAIChatModel(model_name, provider=OpenAIProvider(base_url=..., api_key=..., http_client=create_retrying_client())). There is no Gemini/custom provider path.
  • ModelSettings: temperature 0.0, max_tokens, timeout, parallel_tool_calls — all from src/config.py env constants.

Prompts

  • Jinja2 templates in YAML under src/agents/prompts/ (keys like agents.<name>.system_prompt / user_prompt), loaded by PromptManager and rendered via self._render_prompt(key) with repo_path etc. as variables.
  • New agent → new prompt section in the matching YAML file, never inline prompt strings in Python.

Orchestration

  • Analyzer: build a dict of task callables (one per non-excluded analysis), run through WorkerPool(max_workers=self._config.max_workers).
  • AI-rules generator: fixed pair of tasks via asyncio.gather(*tasks, return_exceptions=True).
  • After the run, validate_succession(files): raise ValueError only if NO output file exists; warn on partial success listing missing files.
  • Each agent writes its own output file (.ai/docs/*.md, README.md, CLAUDE.md/AGENTS.md, .cursor/rules/*.mdc); create parent dirs and clean absolute paths first.

Tools

class FileReadTool:
    def get_tool(self):
        return Tool(self._run, name="Read-File", takes_ctx=False, max_retries=...)

    def _run(self, file_path: str, line_number: int = 0, line_count: int = 200) -> str:
        """Docstring is the LLM-facing description — keep Args/Returns accurate."""
        ...
        raise ModelRetry(message="File not found")  # recoverable errors → ModelRetry
  • Tool docstrings are what the LLM sees; keep them precise.
  • Raise ModelRetry for recoverable failures (missing file, permission denied); set span attributes for inputs/outputs; log with Logger.debug.

Handlers

  • Subclass AbstractHandler, config = BaseHandlerConfig + agent config, construct the agent in __init__, and wrap handle() work in an OpenTelemetry span with repo_path/config-flag attributes.
  • Log token usage (result.usage().total_tokens) and execution time after each agent run.

Related Skills

View on GitHub
GitHub Stars763
CategoryAI
Updated2mo ago
Forks82

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions