# Agently Agents And Prompts

> Agent setup, prompt layering, routing, and info injection patterns.

- Skill: `agentera/agently-agents-and-prompts` (Agent Skill, multi-file: 9 files)
- Install (CLI): `npx skillmds@latest add agentera/agently-agents-and-prompts`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentera/agently-agents-and-prompts/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentera (https://skillmd.com/u/agentera)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/agentera/agently-agents-and-prompts

---


# Agently Agents and Prompts Skill

Use this skill for agent configuration, prompt layering, YAML-based prompts, and multi-agent routing.

## Key Patterns
- Keep stable rules in agent prompts; keep dynamic input in request prompts.
- Use YAML prompts for maintainable configurations.
- Route to specialized agents by intent.

## Pitfalls to Avoid (Lessons from NexusTodo)
- Fix action enums and status enums in the system prompt to prevent invalid actions.
- Map common Chinese phrases to structured fields (e.g., "未完成" => `status_list`).
- Rename requests should set `title=NEW` and `query.keyword=OLD` (without "任务" suffix).
- Deletion with keyword should be allowed as bulk without extra clarification.
- For “这些/上述/刚才列出的任务”, return `selection_indices` to select by list order.

## References
- `examples/prompt_layers_and_mappings.py`
- `examples/prompt_config_from_yaml.py`
- `examples/multi_agent_router.py`
- `examples/rag_with_info_prompt.py`
- `examples/single_request_multi_read.py`
- `examples/prompt_template.yaml`

## Examples
See `examples/run.sh` for runnable commands.

