agentleFS
MicrosoftKnown publishermicrosoft/vscode/.github/skills/sessions/SKILL.md

sessions

Skill196k starsChanged 17 days agoMITView on GitHub

Core principles and workflow router for changes to the Agents Window under src/vs/sessions.

15 other projects use a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 4 mentionsJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 2 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/vscode repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about microsoft/vscode

The biggest 5 of 96 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 96

Talked about on Bluesky, Hacker News and GitHub (96 times).

On Bluesky · 48

43 more on Bluesky

On Hacker News · 39

34 more on Hacker News

On GitHub · 9

4 more on GitHub

Used with

Projects with it also use refactor-clean, update-docs and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • TheKREATORSSkill

    refactor-clean

    No description

    Also in 3 projects that use this

  • Hugging FaceSkill

    update-docs

    Update documentation across the repo after API changes. Finds stale references in docs, examples, docstrings, and fixes them.

    Also in 3 projects that use this

  • genomewalkerSkill

    checkpoint

    Save a checkpoint of task status, decisions, active files, and next steps

    Also in 3 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 4 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

  • AnthropicSkill

    verify

    Drive the contracts engine's runtime surface (the stdio MCP server) to verify changes end-to-end. Scoped to public-plugins/plugins/healthcare/skills/contracts/ and ../../servers/documents/.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill for implementation, review, or design work under src/vs/sessions/.

    line 8
  2. Distinctive:

    Keep shared Sessions code provider-neutral.

    line 13
  3. Very specific:

    Import contributions from the appropriate sessions.*.main.ts entry point.

    line 16
  4. Distinctive:

    Prefer Sessions-owned adaptations over shared workbench changes unless the capability is genuinely shared.

    line 17
  5. Distinctive:

    Put stable architecture in the owning specification and concrete behavior in tests.

    line 18
  6. Very specific:

    Start with src/vs/sessions/README.md, then read only the specifications relevant to the change:

    line 22
  7. Distinctive:

    Do not load the learning inbox by default.

    line 40
  8. Distinctive:

    Search for shared helpers, context keys, menu IDs, entry-point imports, and provider abstractions before adding new ones.

    line 45
  9. Distinctive:

    If any answer is missing, leave the specification unchanged.

    line 70
  10. Distinctive:

    Run the smallest existing checks that cover the change:

    line 76
  11. Distinctive:

    Update this skill only when a principle is stable, cross-cutting, and useful for most Agents Window work, or when the routing/workflow …

    line 91
  12. Distinctive:

    Keep the core-principles section at no more than ten bullets.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agents Window development

Use this skill for implementation, review, or design work under src/vs/sessions/**.

1. Apply the core principles

  • Preserve the layer direction: vs/sessions may import vs/workbench and lower layers; vs/workbench must never import vs/sessions.
  • Keep shared Sessions code provider-neutral. Non-provider contributions must not import provider implementations.
  • Model mutable session and chat state with observables. Use events for notifications, not as a parallel state model or for control flow.
  • Register Sessions menu IDs in browser/menus.ts and consume Menus.*.
  • Import contributions from the appropriate sessions.*.main.ts entry point.
  • Prefer Sessions-owned adaptations over shared workbench changes unless the capability is genuinely shared.
  • Put stable architecture in the owning specification and concrete behavior in tests. Do not preserve implementation chronology as development guidance.

2. Identify the owning area

Start with src/vs/sessions/README.md, then read only the specifications relevant to the change:

AreaSpecification
Layering, folder ownership, cross-module importssrc/vs/sessions/LAYERS.md
Session/chat model, services, provider contract, core data flowsrc/vs/sessions/SESSIONS.md
Automations ownership, routing, migration, persistence, and run lifecyclesrc/vs/sessions/AUTOMATIONS.md
Workbench parts, grid, title bar, editor presentationsrc/vs/sessions/LAYOUT.md
Session-aware layout state and restorationsrc/vs/sessions/LAYOUT_CONTROLLER.md
Desktop layout scenarios and expected compositionssrc/vs/sessions/DESKTOP.md
Sessions sidebar list, grouping, filtering, and persistencesrc/vs/sessions/SESSIONS_LIST.md
Phone layout and mobile componentssrc/vs/sessions/MOBILE.md
AI customizationssrc/vs/sessions/AI_CUSTOMIZATIONS.md
Copilot customizationssrc/vs/sessions/copilot-customizations-spec.md
Copilot Chat providersrc/vs/workbench/contrib/sessions/providers/copilotChatSessions/COPILOT_CHAT_SESSIONS_PROVIDER.md
Agent Host providersrc/vs/workbench/contrib/sessions/providers/agentHost/AGENT_HOST_SESSIONS_PROVIDER.md
Remote Agent Host providersrc/vs/workbench/contrib/sessions/providers/remoteAgentHost/REMOTE_AGENT_HOST_SESSIONS_PROVIDER.md

Do not load the learning inbox by default. Search its headings and scopes, then read only matching entries after the authoritative specification.

3. Inspect before changing

  • Trace the current implementation and its existing tests.
  • Search for shared helpers, context keys, menu IDs, entry-point imports, and provider abstractions before adding new ones.
  • Confirm which layer owns the behavior. Keep provider-specific decisions in the provider and view/layout decisions in Sessions-owned browser code.
  • For UI work, also invoke the applicable accessibility, design, CSS, layout, or theming skill.
  • For agent, LLM, policy, permissions, telemetry, or managed-setting changes, invoke the applicable specialist skill before implementation.

4. Implement the contract

Apply the core principles and the focused specification. Prefer small changes that preserve these boundaries:

  • ISessionsManagementService owns model orchestration and provider routing.
  • ISessionsService owns visible and active session behavior.
  • Providers expose provider-neutral state through ISession and IChat.
  • Session state is observable; consumers derive UI state reactively.
  • Contributions load through the appropriate sessions.*.main.ts entry point.
  • Sessions menus use the shared Menus registry.
  • Shared workbench changes represent shared capability, not Sessions-specific policy.

Specification edit gate

Bug fixes do not update specifications when they restore an existing contract. Before editing an authoritative specification, identify all three:

  1. the existing ownership, interface, lifecycle, state-machine, persistence, or cross-component contract that intentionally changes;
  2. the implementation surfaces affected by that contract change;
  3. why a regression test and a brief code comment cannot fully represent it.

If any answer is missing, leave the specification unchanged. Put concrete behavior in a focused test, keep a non-obvious implementation constraint beside the owning code, and preserve investigation history in the issue or pull request.

Update a specification only when component ownership, an interface or lifecycle contract, a state machine, persistence, or a cross-component invariant changes. Do not update specifications for styling, copy, action placement, telemetry fields, settings defaults, implementation algorithms, or individual bug fixes. Those details belong in code and focused tests.

5. Validate proportionally

Run the smallest existing checks that cover the change:

  • focused unit tests for affected behavior;
  • pnpm run valid-layers-check when imports or module ownership change;
  • targeted type checking or compilation when TypeScript changes warrant it;
  • relevant integration, E2E, or visual validation for cross-process or UI work.

Documentation-only changes require link, path, and consistency checks rather than a full build.

6. Record feedback correctly

When a user explicitly corrects or rejects an approach, invoke the feedback-learning skill unless they use the literal learn! trigger. Literal learn! requests follow .github/instructions/learnings.instructions.md instead. A durable architecture invariant belongs in the owning specification, concrete behavior belongs in a regression test, and unproven reusable guidance belongs temporarily in the scoped learning inbox. Never append every correction to this skill.

7. Maintain this skill

Update this skill only when a principle is stable, cross-cutting, and useful for most Agents Window work, or when the routing/workflow itself changes. Put subsystem contracts in their focused specification and bug behavior in tests.

Keep the core-principles section at no more than ten bullets. Before adding one, merge overlap, remove obsolete guidance, and prefer rewriting an existing principle. Never append incident-specific details or use this skill as a learning log.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.