system-prompt-builder

Assemble multi-layer system prompts for Convex-based generation tasks.

7|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/planetaryescape/blah.chat --skill system-prompt-builder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: system-prompt-builder
Source: https://github.com/planetaryescape/blah.chat/tree/main/.claude/skills/system-prompt-builder
Command: npx skills add https://github.com/planetaryescape/blah.chat --skill system-prompt-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

System prompt assembly for blah.chat AI backend. Multi-layer prompt construction with priority ordering, parallel context loading, memory truncation, budget awareness.

Core Features & Use Cases

  • Multi-layer prompts: Compose base prompts, identity memories, contextual memories, project context, knowledge bank prompts, and budget-state prompts with clear priority.
  • Parallel loading: Load user/conversation data in parallel to minimize latency during prompt construction.
  • Memory management: Truncate memories by category to respect context budget.
  • Knowledge integration: Include knowledge bank prompts when function calling is enabled.
  • Graceful degradation: Continue operation when optional components are unavailable; document mode prompts for editing workflows.
  • Custom instructions: Apply user customizations as the highest-priority last layer when present.

Quick Start

  1. Integrate the system-prompt-builder into your backend prompts pipeline.
  2. Ensure you enable parallel data loading and memory truncation as demonstrated.
  3. Trigger prompt assembly during a Convex generation action to assemble system prompts in real-time.

Frequently Asked Questions about system-prompt-builder

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

FAQPage Schema
How do I assemble multi-layer system prompts with memory truncation for a Convex backend?▼

Multi-layer system prompt assembly combines base prompts, identity memories, knowledge banks, and budget state into a prioritized structure. The system truncates memories by category to fit context budgets and loads context in parallel to minimize latency during real-time Convex generation actions.

What is parallel context loading for AI prompt construction and how does it work?▼

Parallel context loading fetches user and conversation data simultaneously rather than sequentially during prompt construction. This approach minimizes latency when assembling complex, multi-layer system prompts by retrieving all required contextual components at once before merging them into the final prompt structure.

How do I manage context budget limits when integrating knowledge banks into system prompts?▼

Context budget management truncates memories by category to ensure the total prompt fits within model limits. When function calling is enabled, knowledge bank prompts are included, while lower-priority contextual memories are truncated first to preserve critical identity and base prompt information.

Can I build custom instructions into an AI backend pipeline without breaking when optional components are missing?▼

Yes, the system supports graceful degradation by continuing prompt assembly when optional components like knowledge banks or project context are unavailable. User custom instructions are applied as the highest-priority final layer, ensuring they override base prompts even if other contextual layers fail to load.

Does system prompt construction handle document editing workflows differently from standard chat generation?▼

Document mode prompts are designed specifically for editing workflows within the AI backend. This mode alters the standard multi-layer prompt assembly to support document-focused generation tasks, maintaining priority ordering and budget awareness while adapting the prompt structure for editing rather than conversational outputs.

Why does my AI backend prompt assembly fail when the context budget is exceeded by large memory stores?▼

Prompt assembly fails when memory stores exceed the context budget if truncation is not properly enabled. The system prevents this by truncating memories by category according to priority, ensuring base prompts and identity memories are preserved while lower-priority contextual memories are reduced to fit the budget.