Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

agent-sessions-layoutAgent 会话布局

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

17,256

周安装

719

GitHub Stars

184,414

下载量

5,752
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-sessions-layout(Agent 会话布局)
来源仓库:https://github.com/microsoft/vscode
仓库路径:skills/agent-sessions-layout
安装命令:
npx skills add https://github.com/microsoft/vscode --skill agent-sessions-layout
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/microsoft/vscode --skill agent-sessions-layout

简介

为 VS Code Agents 工作台布局提供标准化设计规范与结构约束。

  • 适用于界面组件位置、可见性及交互行为的规范化管理场景。
  • 必须依据 src/vs/sessions/LAYOUT.md 规范执行变更,不得随意调整网格与部分尺寸。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出与响应式表现。
  • 建议结合品牌与设计系统使用,避免仅堆砌装饰元素影响可用性。

SKILL.md

When working on the Agents workbench layout, always follow these guidelines:

1. Read the Specification First

The authoritative specification for the Agents layout lives at:

src/vs/sessions/LAYOUT.md

Before making any changes to the layout code, read and understand the current spec. It defines:

  • The fixed layout structure (grid tree, part positions, default sizes)
  • Which parts are included/excluded and their visibility defaults
  • Titlebar configuration and custom menu IDs
  • Editor modal overlay behavior and sizing
  • Part visibility API and events
  • Agent session part classes and storage keys
  • Workbench contributions and lifecycle
  • CSS classes and file structure

2. Keep the Spec in Sync

If you modify the layout implementation, you must update LAYOUT.md to reflect those changes. The spec should always match the code. This includes:

  • Adding/removing parts or changing their positions
  • Changing default visibility or sizing
  • Adding new actions, menus, or contributions
  • Modifying the grid structure
  • Changing titlebar configuration
  • Adding new CSS classes or file structure changes

Update the Revision History table at the bottom of LAYOUT.md with a dated entry describing what changed.

3. Implementation Principles

When proposing or implementing changes, follow these rules from the spec:

  1. Maintain fixed positions — Do not add settings-based position customization
  2. Panel must span the right section width — The grid structure places the panel below Chat Bar and Auxiliary Bar only
  3. Sidebar spans full height — Sidebar is in the main content branch, spanning from top to bottom
  4. New parts go in the right section — Any new parts should be added to the horizontal branch alongside Chat Bar and Auxiliary Bar
  5. Preserve no-op methods — Unsupported features (zen mode, centered layout, etc.) should remain as no-ops, not throw errors
  6. Handle pane composite lifecycle — When hiding/showing parts, manage the associated pane composites
  7. Use agent session parts — New part functionality goes in the agent session part classes (SidebarPart, AuxiliaryBarPart, PanelPart, ChatBarPart, ProjectBarPart), not the standard workbench parts
  8. Use separate storage keys — Agent session parts use their own storage keys (prefixed with workbench.agentsession. or workbench.chatbar.) to avoid conflicts with regular workbench state
  9. Use agent session menu IDs — Actions should use Menus.* menu IDs (from sessions/browser/menus.ts), not shared MenuId.* constants

4. Key Files

FilePurpose
sessions/LAYOUT.mdAuthoritative layout specification
sessions/browser/workbench.tsMain layout implementation (Workbench class)
sessions/browser/menus.tsAgents menu IDs (Menus export)
sessions/browser/layoutActions.tsLayout actions (toggle sidebar, panel, secondary sidebar)
sessions/browser/paneCompositePartService.tsAgenticPaneCompositePartService
sessions/browser/media/style.cssLayout-specific styles
sessions/browser/parts/parts.tsAgenticParts enum
sessions/browser/parts/titlebarPart.tsTitlebar part, MainTitlebarPart, AuxiliaryTitlebarPart, TitleService
sessions/browser/parts/sidebarPart.tsSidebar part (with footer and macOS traffic light spacer)
sessions/browser/parts/chatBarPart.tsChat Bar part
sessions/browser/parts/auxiliaryBarPart.tsAuxiliary Bar part (with run script dropdown)
sessions/browser/parts/panelPart.tsPanel part
sessions/browser/parts/projectBarPart.tsProject Bar part (folder entries, icon customization)
sessions/contrib/configuration/browser/configuration.contribution.tsSets workbench.editor.useModal to 'all' for modal editor overlay
sessions/contrib/sessions/browser/sessionsTitleBarWidget.tsTitle bar widget and agent picker
sessions/contrib/chat/browser/runScriptAction.tsRun script split button for titlebar
sessions/contrib/accountMenu/browser/account.contribution.tsAccount widget for sidebar footer
sessions/electron-browser/parts/titlebarPart.tsDesktop (Electron) titlebar part

5. Testing Changes

After modifying layout code:

  1. Verify the build compiles without errors via the VS Code - Build task
  2. Ensure the grid structure matches the spec's visual representation
  3. Confirm part visibility toggling works correctly (show/hide/maximize)
  4. Test that editors open in the ModalEditorPart overlay and that it closes properly
  5. Verify sidebar footer renders with account widget

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.36%
按下载量换算2,034

Claude

30.19%
按下载量换算1,737

Cursor

18.71%
按下载量换算1,076

Gemini CLI

9.81%
按下载量换算564

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills