feat(ai-autopilot): personas + prompts library (stack-aware knowledge)#102
Merged
Conversation
vitepress build fails on dead internal links (the docs config ignores only localhost links), so a docs job on every PR doubles as a link check. Closes #59
Add the persona layer that makes autopilot opinionated about the GemStack stack (Vike + universal-orm) instead of generic: - definePersona() — a validated, frozen Persona (systemPrompt + skills + tools) - personaAgent()/personaWorkers() — materialize personas into Supervisor workers - personaRoster() — describe personas to a planner so plans route by role - Built-ins: vikePageBuilder, universalOrmModeler, uiIntentDesigner (the declare-intent/decouple-implementation UI guardrail) Skills compose over @gemstack/ai-skills. First child (#98) of epic #97.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #98. First child of epic #97.
What
Adds the persona layer to
@gemstack/ai-autopilot— the stack-aware knowledge that makes autopilot opinionated about the GemStack stack (Vike + universal-orm) instead of generic. The Supervisor stays stack-agnostic; personas carry the opinion.A
Personais data (name + role + system prompt + skills + tools), so it can be inspected and listed without building an agent. It materializes into anai-sdkagent on demand.definePersona(spec)— validated, frozen personapersonaAgent(persona)— materialize one into a worker agentpersonaWorkers(personas)— aRecord<name, Agent>ready forSupervisor.workerspersonaRoster(personas)— a planner-facing prompt fragment so plans route each subtask to a role@gemstack/ai-skills(reuses its instruction/tool/middleware composition)Built-in personas
vikePageBuilder— Vike+file conventions, renderer-agnosticuniversalOrmModeler— schema-first data, derived migrations, typed queriesuiIntentDesigner— the "declare intent, decouple implementation" guardrail: express UI as intent so an AI can't hardcode the wrong markupTest
10 new tests (define + compose); full package suite 34/34 green. Typecheck + build clean.
Scope
Personas + prompts only. Runner (#99), surfaces (#100), and Flue teardown (#101) are separate children.