算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-context-engineer【设计与创意】Guides context engineering for LLM systems—assembling prompts, budgeting tokens, prioritizing sources, compressing history, caching, structured context blocks, and debugging context-related failures (lost instructions, overflow, distraction). Use when designing what enters the model context each turn, optimizing cost/latency via context strategy, bui…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
ai-memory-developerai-engineerai-lead-opsai-token-improvement-plan-engineerapplied-ai-architect-commercial-enterprise| Need | Skill |
|---|---|
| Memory stores and long-term recall | ai-memory-developer |
| RAG ingest/chunk/embed | ai-engineer |
| System and tool prompts | prompt-engineer |
| Red-team injection via context | ai-redteam |
| Cost and production SLAs | ai-lead-ops |
| Token reduction program and roadmap | ai-token-improvement-plan-engineer |
| Commercial/enterprise AI architecture | applied-ai-architect-commercial-enterprise |
| Token efficiency research and ablations | research-engineer-scientist-tokens |
Allocate tokens (example 128k window):
| Block | Budget % | Priority |
|---|---|---|
| System policy + tools | 15–25% | Fixed, never truncated |
| Retrieved docs / memory | 30–45% | High, reranked |
| Conversation history | 25–40% | Compress oldest first |
| User current message | 5–10% | Never drop |
Use explicit XML/markdown sections: <policy>, <tools>, <context>, <history>, <user>.
See references/context_layout.md for templates and delimiter rules.
| Strategy | When |
|---|---|
| Full recent window | Short chats, high-stakes instructions in last N turns |
| Rolling summary | Long sessions; summarize every K turns |
| Anchor messages | Pin system + key user constraints; summarize middle |
| Structured state | Replace chat with JSON task state for agents |
Preserve: user goals, constraints, unresolved tool errors, pending confirmations.
See references/history_compression.md for summarization prompts and pitfalls.
See references/retrieval_packing.md for packing algorithms and citation format.
See references/caching_prefetch.md for provider notes and invalidation.
| Symptom | Likely cause | Fix |
|---|---|---|
| Ignored instruction | Buried in middle / summarized away | Move to system or last user turn |
| Hallucinated doc | Weak retrieval | Raise threshold; require citation |
| Overflow error | No budget enforcement | Pre-flight token count; compress |
| Tool confusion | Ambiguous schemas in context | Separate tool block; shorten descriptions |
Log token counts per block in dev/staging.
See references/debugging_context.md for instrumentation checklist.
references/context_layout.mdreferences/history_compression.mdreferences/retrieval_packing.mdreferences/caching_prefetch.mdreferences/debugging_context.md