shiganluo/skill/ai-agent-skill-architecture
Claude Code and agent skill by shiganluo/skill
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when building AI agent tools with self-describing skills
Install
npx vskill@latest install shiganluo/skill/ai-agent-skill-architectureSKILL.md
AI Agent Skill Architecture
Build extensible AI agent tool systems where tools self-describe, system prompts auto-generate, and agents can create new skills at runtime.
Core Pattern: Tool extends Skill
Every Tool automatically becomes a Skill.
SkillRegistry: Auto-Generated System Prompts
AgentService never hardcodes system prompts. New tool = new @Component.
Agent-Created Skills
Dynamic Schema Injection
LLM Tool Calling Loop
SSE Streaming for Agent Output
Spring SseEmitter with heartbeat keepalive + disconnect detection:
nginx SSE requirements (both frontend and admin nginx):
Broken pipe handling: Add IOException handler to GlobalExceptionHandler at DEBUG level:
Pitfalls
- Assistant message MUST include tool_calls array before tool results
- MAX_ROUNDS=5, exhausted → fallback no-tool call
- Inject schema into prompt, don't let LLM explore (wastes 2-3 rounds)
- ChatMessage record: adding fields requires updating ALL factory methods
- Schema format:
table_name(col1 type, col2 type)one per line - Java lambda captures:
ScheduledFuture<?> var = executor.schedule(() -> { use(var); })won't compile — useScheduledFuture<?>[] holder = new [1]array wrapper - SSE heartbeat must self-cancel: catch exception in heartbeat lambda → cancel + shutdown, otherwise logs flood with Broken pipe after emitter.complete()
- Two-layer nginx proxy: both inner (container) and outer (host) need
proxy_buffering offfor SSE - Docker chroot needs:
cap_add: SYS_CHROOT+ run as root (not USER directive in Dockerfile)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsoftware-development/ai-agent-skill-architecture/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shiganluo/skill/ai-agent-skill-architecture)