feat(skills): always-on skills injected into every new task - #4059
Draft
adboio wants to merge 2 commits into
Draft
feat(skills): always-on skills injected into every new task#4059adboio wants to merge 2 commits into
adboio wants to merge 2 commits into
Conversation
Per-skill "Always-on" toggle (user/marketplace/codex/bundled sources) that
injects toggled skills into every new task's first message — like a channel's
CONTEXT.md — on both cloud and local runs.
Cloud rides the existing bundle-upload pipeline: refs append to the
transport's skillBundles and a /name manifest folds into the first message so
the sandbox's existing inliner picks them up. Local inlines SKILL.md bodies
into initialPrompt via the existing skills.readFile surface. Refs persist as
{name, source} in the settings store and re-resolve at creation, so moved or
deleted skills self-heal. The transcript collapses the injected block into an
"Always-on skills (n)" chip.
Generated-By: PostHog Code
Task-Id: 4e1d8b15-54b7-4555-a21f-150eead107f4
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Shows the skills that will be auto-injected into the next task as chips in the new-task page's "Using:" row (beside the channel CONTEXT.md chip) and in the channel feed composer's floating row next to the local/cloud selector. Clicking a chip opens the skill in Settings; the X turns its always-on toggle off globally. Chips render from the same resolution the saga uses at creation, so stale refs never show. Generated-By: PostHog Code Task-Id: 4e1d8b15-54b7-4555-a21f-150eead107f4
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.
Problem
Skills only activate today when a task's prompt explicitly references them (
/nameor a composer skill chip). There's no way to say "apply this skill to everything I do" — the way a channel's CONTEXT.md is injected automatically, or the way a SessionStart-hook plugin (e.g. i-have-adhd) puts its instructions in context from turn one.Refs #3735 (earlier attempt, auto-closed as stale — this supersedes it).
Changes
user/marketplace/codex/bundledsources. Repo-source skills are excluded so behavior is identical for repo and repo-less tasks. Toggles persist in the settings store as{name, source}refs and re-resolve against the live skill list at task creation, so moved/deleted skills self-heal.skillBundles(uploaded with the first message, warm and cold paths) and a<always_on_skills>manifest of/namementions is folded into the first message, which the sandbox's existing inliner expands into each bundle's full SKILL.md. Zero sandbox/server changes.skills.readFiletRPC), with per-skill/total size caps degrading to path references.How did you test this?
@posthog/core(2863),@posthog/ui(2452),@posthog/shared(777) — all green;pnpm typecheckgreen across all 24 packages;biome lint packages/coreclean.Automatic notifications
Created with PostHog Code