vetorizacao-e-contexto-de-escrita

Compiles writing session state into a unified context vector for local recommendation engines.

Updated Jul 19, 2026
One-click install
npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill vetorizacao-e-contexto-de-escrita-ryanzucchi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vetorizacao-e-contexto-de-escrita
Source: https://github.com/Ryanzucchi/Eldritch_Lich/tree/main/.agents/skills/vetorizacao-e-contexto-de-escrita
Command: npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill vetorizacao-e-contexto-de-escrita-ryanzucchi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Authors using AI-assisted writing tools need recommendation engines to understand the current state of their work, but computing that context synchronously during typing freezes the editor. This Skill asynchronously compiles the author's live writing session into a single Contextual Authoring Context (CAC) vector without blocking the UI. ## Core Features & Use Cases - Multi-source context fusion: Combines recent text embeddings, active scene entities from the local lore graph, structural book position, and author feedback history into one weighted vector. - Debounced background execution: Runs computation in a Web Worker with a 1000ms debounce, triggered by paragraph breaks, shortcut keys, or 5 seconds of idle cursor time. - Configurable weighting: Exposes parameters like CAC_DEBOUNCE_DELAY_MS, RECENT_WORDS_COUNT, and WEIGHT_TEXT_RECENT to tune vector composition. - Use Case: A novelist pauses mid-scene; the Skill compiles a 768-dimension CAC vector capturing the last 512 words, the active character "Kael", and 10% book completion, feeding it to local plot and character recommendation engines. ## Quick Start Compile the current writing context vector from my editor session so the local recommendation engine can suggest relevant plot and character ideas.

Frequently Asked Questions about vetorizacao-e-contexto-de-escrita

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

FAQPage Schema
How do I build a context vector for AI writing recommendations?▼

Combine weighted components: embed the last 512 words of text, average attribute vectors of active scene entities from the lore graph, encode book completion ratio, and apply time-decayed averaging over accepted suggestion embeddings. Fuse them with weights such as 0.50, 0.30, 0.10, and 0.10.

How to compute embeddings without freezing the text editor?▼

Run embedding and graph queries inside a Web Worker with a debounce delay of about 1000ms, triggered only on paragraph breaks, explicit shortcuts, or 5 seconds of cursor idle. Never compute synchronously per keystroke on the main thread.

When should writing context be recomputed during a session?▼

Recompute on observable triggers: paragraph break keys, contextual suggestion shortcuts like Ctrl+Space, or cursor idle exceeding 5 seconds. Avoid per-keystroke recomputation and batch import scenarios, which use static bulk indexing instead.

What causes vector drift in author feedback weighting?▼

Drift occurs when dynamic feedback weights and graph state components react to sudden stylistic changes by the author. The documented fallback is to restrict the vector to recent text semantics only, disabling graph and acceptance-history dependencies in v1.

What latency is acceptable for background context compilation?▼

The validation criteria require total CAC compilation under 50ms on the local machine with zero dropped frames in the editor UI. Meeting this requires worker-based execution and debouncing rather than main-thread synchronous processing.