rag-agent

Generate RAG agent scaffolds with prompts, tests, and router entries.

2|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/SKNETWORKS-FAMILY-AICAMP/SKN20-FINAL-6TEAM --skill rag-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-agent
Source: https://github.com/SKNETWORKS-FAMILY-AICAMP/SKN20-FINAL-6TEAM/tree/main/.claude/skills/rag-agent
Command: npx skills add https://github.com/SKNETWORKS-FAMILY-AICAMP/SKN20-FINAL-6TEAM --skill rag-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured scaffold to rapidly generate new RAG domain agents, including an agent class, a prompt template, and unit tests, all following a consistent project layout.

Core Features & Use Cases

  • Scaffold new agent packages under rag/ with agents/, prompts/, and tests/ directories.
  • Generate a ready-to-run skeleton for LangChain-based agents connected to a vector store.
  • Provide a test skeleton to validate can_handle and process behavior across domain agents.
  • Useful when adding new domains, separating specialized agents, or prototyping domain-specific assistants.

Quick Start

  • Provide the following inputs to generate a new agent:
    • Agent name (snake_case)
    • Domain description
    • Keywords list
    • Vector collection name
  • The system will create rag/agents/{name}_agent.py, rag/prompts/{name}prompt.py, and rag/tests/unit/test{name}_agent.py with a basic test scaffold.
  • Then register the new agent in the router to enable routing in the application.

Frequently Asked Questions about rag-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new RAG agent for a specific domain?

To scaffold a new RAG agent, provide an agent name, domain description, keywords list, and vector collection name. This generates the agent class, prompt template, and unit tests within a consistent rag/ project layout.

What is the best way to structure multiple LangChain RAG agents in one project?

Structuring LangChain RAG agents requires a consistent directory layout like rag/agents, rag/prompts, and rag/tests. This approach enforces separation of specialized agents and provides CI-friendly scaffolding for each domain.

Does this RAG agent scaffold generate unit tests for the agent logic?

Yes, the RAG agent scaffold generates a test skeleton under rag/tests/unit/. It validates the can_handle and process behaviors to ensure your domain agents function correctly before routing them into the application.

Can I use this scaffold to add a new domain agent to an existing application router?

Yes, you can use this scaffold to add domain agents to an existing system. It generates a router entry for the new agent, allowing you to register and enable routing seamlessly within your current application architecture.

Do I need a vector store collection before generating a LangChain RAG agent?

Yes, you need a vector collection name to generate the agent. The scaffold links the base agent class directly to your specified vector store collection to enable retrieval-augmented generation for that domain.

Why create separate RAG agents instead of one general agent?

Creating separate RAG agents allows for domain-specific prompts and targeted retrieval. This scaffold supports adding new domains and prototyping specialized assistants by generating isolated agent packages with dedicated prompts and tests.