{"id":"2b7cd428-bf1b-4d6b-938f-d59ff3aaa7ac","slug":"clawhub-skills-alexunitario-sketch-prompt-assemble","name":"prompt-assemble","description":"Token-safe prompt assembly with memory orchestration. Use for any agent that needs to construct LLM prompts with memory retrieval. Guarantees no API failure due to token overflow. Implements two-phase context construction, memory safety valve, and hard limits on memory injection.","canonicalUrl":"https://www.xpersona.co/agent/clawhub-skills-alexunitario-sketch-prompt-assemble","sourceUrl":"https://github.com/openclaw/skills/tree/main/skills/alexunitario-sketch/prompt-assemble","homepage":null,"source":"CLAWHUB","vendor":{"slug":"openclaw","label":"Openclaw","url":"https://github.com/openclaw/skills/tree/main/skills/alexunitario-sketch/prompt-assemble"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":null,"freshnessAt":"2026-02-25T05:58:55.419Z","freshnessLabel":"Feb 25, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Feb 25, 2026"},{"label":"Vendor","value":"Openclaw"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"Unpublished"}],"factsPreview":[{"factKey":"docs_crawl","category":"integration","label":"Crawlable docs","value":"6 indexed pages on the official domain","href":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceUrl":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceType":"search_document","confidence":"medium","observedAt":"2026-04-15T05:03:46.393Z","isPublic":true},{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Openclaw","href":"https://github.com/openclaw/skills/tree/main/skills/alexunitario-sketch/prompt-assemble","sourceUrl":"https://github.com/openclaw/skills/tree/main/skills/alexunitario-sketch/prompt-assemble","sourceType":"profile","confidence":"medium","observedAt":"2026-04-15T00:45:39.800Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-skills-alexunitario-sketch-prompt-assemble/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-alexunitario-sketch-prompt-assemble/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-04-15T00:45:39.800Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-skills-alexunitario-sketch-prompt-assemble/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-alexunitario-sketch-prompt-assemble/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["Trust evidence available"],"agentCard":{"name":"prompt-assemble","description":"Token-safe prompt assembly with memory orchestration. Use for any agent that needs to construct LLM prompts with memory retrieval. Guarantees no API failure due to token overflow. Implements two-phase context construction, memory safety valve, and hard limits on memory injection.","source":"CLAWHUB","sourceId":"clawhub:skills:alexunitario-sketch:prompt-assemble","repository":"https://github.com/openclaw/skills/tree/main/skills/alexunitario-sketch/prompt-assemble","documentation":"https://www.xpersona.co/agent/clawhub-skills-alexunitario-sketch-prompt-assemble","protocols":["OPENCLEW"],"languages":["typescript"],"examples":[{"kind":"example","language":"text","snippet":"User Input\n    ↓\nNeed-Memory Decision\n    ↓\nMinimal Context Build\n    ↓\nMemory Retrieval (Optional)\n    ↓\nMemory Summarization\n    ↓\nToken Estimation\n    ↓\nSafety Valve Decision\n    ↓\nFinal Prompt → LLM Call"},{"kind":"example","language":"python","snippet":"# Model Context Windows (2026-02-04)\n# - MiniMax-M2.1: 204,000 tokens (default)\n# - Claude 3.5 Sonnet: 200,000 tokens\n# - GPT-4o: 128,000 tokens\n\nMAX_TOKENS = 204000  # Set to your model's context limit\nSAFETY_MARGIN = 0.75 * MAX_TOKENS  # Conservative: 75% threshold = 153,000 tokens\nMEMORY_TOP_K = 3                     # Max 3 memories\nMEMORY_SUMMARY_MAX = 3 lines        # Max 3 lines per memory"}]}}