Skip to content

northseadl/norix-skills / llm-agent-dev

llm-agent-dev

Unverified

LLM Agent engineering: pattern selection (12-mode matrix), data simulation, convergence iteration. Covers intent routing, function calling, ReAct, MCP, prompt chaining, guardrails, evaluation.

FileKindSize
SKILL.mdskill md17.6 KB
agents/openai.yamlconfig198 B
evals/evals.jsonconfig4.7 KB
references/convergence/iteration-protocol.mdmarkdown8.0 KB
references/eval-loop.mdmarkdown9.4 KB
references/feedback-protocol.mdmarkdown6.0 KB
references/intent-patterns.mdmarkdown5.8 KB
references/paradigms/context-engineering.mdmarkdown6.0 KB
references/paradigms/decision-tree.mdmarkdown2.7 KB
references/paradigms/memory-architecture.mdmarkdown4.0 KB
references/paradigms/observability.mdmarkdown4.5 KB
references/paradigms/pattern-matrix.mdmarkdown3.3 KB
references/paradigms/performance-benchmarking.mdmarkdown15.2 KB
references/paradigms/prompt-patterns.mdmarkdown5.0 KB
references/paradigms/safety-guardrails.mdmarkdown5.5 KB
references/paradigms/tool-design.mdmarkdown2.5 KB
references/patterns/01-crex-rule-router.mdmarkdown6.8 KB
references/patterns/02-slot-filling.mdmarkdown7.1 KB
references/patterns/03-function-calling.mdmarkdown3.9 KB
references/patterns/04-workflow-agent.mdmarkdown5.0 KB
references/patterns/05-react-agent.mdmarkdown3.4 KB
references/patterns/06-router-expert.mdmarkdown3.2 KB
references/patterns/07-mcp-tool-protocol.mdmarkdown5.0 KB
references/patterns/08-handoff-delegation.mdmarkdown4.7 KB
references/patterns/09-prompt-chaining.mdmarkdown3.0 KB
references/patterns/10-parallelizing.mdmarkdown3.2 KB
references/patterns/11-orchestrator-worker.mdmarkdown4.8 KB
references/patterns/12-evaluator-optimizer.mdmarkdown5.5 KB
references/scenarios/coding-assistant.mdmarkdown2.0 KB
references/scenarios/content-generation.mdmarkdown2.7 KB
references/scenarios/customer-service.mdmarkdown2.6 KB
references/scenarios/ecommerce-shopping.mdmarkdown4.2 KB
references/scenarios/food-ordering.mdmarkdown3.1 KB
references/scenarios/knowledge-qa.mdmarkdown2.6 KB
references/simulation/data-generation.mdmarkdown8.1 KB
references/skill-templates.mdmarkdown8.0 KB

references/scenarios/coding-assistant.md

View on GitHub
# 场景蓝图: 编程助手 Agent

> 代码生成、调试、解释的 Agent 架构
> 参考: Cursor, GitHub Copilot, Aider, Claude Code

## 用户旅程

```
提问 → 理解上下文 → 检索代码 → 推理 → 生成/修改 → 验证 → 交付
```

## 架构

```
用户输入 (自然语言 + 代码上下文)
   │
   ▼
[意图分类 LLM]
   │
   ├─ 代码解释 ──→ ⑨ Prompt Chain → 读代码 → 分析 → 解释
   ├─ 代码生成 ──→ ⑫ Eval-Optimizer → 生成 → 测试验证 → 迭代
   ├─ Bug 调试 ──→ ⑤ ReAct → 假设 → 定位 → 修复 → 验证
   ├─ 代码审查 ──→ ⑩ Parallelizing → 安全/性能/风格并行检查
   ├─ 重构建议 ──→ ⑪ Orchestrator → 分析依赖 → 规划步骤 → 执行
   └─ 文档生成 ──→ ⑨ Prompt Chain → 读代码 → 提取接口 → 生成文档
```

## 模式选型

| 场景 | 模式 | 延迟 | 说明 |
|------|------|------|------|
| 代码补全 | ③ FC | < 1s | 编辑器内联补全 |
| 代码解释 | ⑨ Chain | 2-5s | 分段解释 |
| 代码生成 | ⑫ Eval-Opt | 5-20s | 生成+测试循环 |
| Bug 调试 | ⑤ ReAct | 5-30s | 推理→定位→修复 |
| 代码审查 | ⑩ Parallel | 3-10s | 多维度并行检查 |
| 重构 | ⑪ Orch-Worker | 10-60s | 动态拆分步骤 |

## 工具集

```
代码搜索 → search_codebase(query, scope)
文件读取 → read_file(path, lines?)
文件写入 → write_file(path, content)
执行命令 → run_command(cmd, cwd)
测试运行 → run_tests(scope?)
LSP 查询 → find_references(symbol), go_to_definition(symbol)
Git 操作 → git_diff(), git_log(n), git_blame(file)
```

## 关键设计要点

1. **上下文窗口管理**: 代码上下文极其消耗 token,必须精准检索
2. **沙箱执行**: 所有代码执行必须在隔离环境中
3. **增量修改**: 编辑已有文件时使用 diff 而非全文替换
4. **验证闭环**: 每次修改后自动运行相关测试
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall