Skip to content
Back to skills

Ai Terminal Development

ASecurity

在 ai-terminal 仓库进行 Windows 原生终端的本地开发、构建、输入渲染与状态修复,不包含远端发布。

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
ai-agentspythonrustgoc++shellbashtestinggit

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add FengLP5263/ai-terminal --skill ai-terminal-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Terminal Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Terminal Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fenglp5263-ai-terminal-development/badge)](https://www.skillsdirectory.com/skills/fenglp5263-ai-terminal-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-terminal-development
description: 在 ai-terminal 仓库进行 Windows 原生终端的本地开发、构建、输入渲染与状态修复,不包含远端发布。
---

# 本地开发

简体中文 | [English](SKILL.en.md)

先读根 AGENTS.md 与架构记录。Windows x64、Rust stable MSVC、C++ Build Tools/SDK;治理和打包需要 Python 3.11+。
工具链优先使用 PATH,可选加载忽略的 .tools/env.ps1;不能把个人工具路径写进源码或文档。

```powershell
.\scripts\windows\project.ps1 governance
.\scripts\windows\project.ps1 build
.\scripts\windows\project.ps1 run
```

POSIX 对应 `sh scripts/posix/project.sh <action>`。Git Bash 可委托 Windows;macOS/Linux 原生动作明确不支持。
默认渲染 OpenGL,替代 DX12 仅用于明确的 A/B 验证,不混用旧二进制结果。
保留源码布局、独立 helper、字体来源和会话级 hook 语义。正常退出只管理自身会话;不杀用户已有 CLI。
Git Bash 加载系统/用户登录配置后再追加会话集成,保留提示符与 PROMPT_COMMAND;不修改用户文件。发现 Git 时支持 PATH、安装记录和环境目录,缺失时显式提供可用 Shell 的回退;测试使用临时 HOME。
修改字体/输入/渲染时做真实截图与操作验收,测试计数不能证明观感或全部输入兼容。
用户可见行为调整时同步维护 `tests/fixtures/preview/` 的样例与覆盖清单。Windows 用 `.\scripts\windows\project.ps1 preview` 从当前工作区构建并打开隔离验收项目;Git Bash 可委托,POSIX 的 `-GenerateOnly` 仅生成数据。

完成后走 testing 技能;架构/配置/命令变化同步 .agents/architecture 与 scripts/README.md,vendor 补丁更新 UPSTREAM.md。

所有可见调试窗口、浮窗和调试示例 EXE 均使用 assets/branding 中用户选定的 B 图标;不要使用框架默认或早期图标。更新探针时验证窗口图标与 EXE 资源,保留 hook helper 不带 GUI 图标。

原生控制台固定资产见 assets/windows/conpty。build.rs 自动为 Cargo 实际输出目录准备 conpty.dll/OpenConsole.exe;不要用单独两个 ai-terminal EXE 代表完整开发制品。修改原生标题栏只针对自身窗口,不修改系统主题。标准 npm 启动器可做有界字面目标检查,自定义包装器保持不透明,不运行 CLI 健康探测或在非零退出后自动重试。


0.4.10 的字体目录与设置共用 FontChoice;改动不能重启运行终端。内置字体保持来源字节,系统字体仅从 Windows Fonts 读取,不安装或复制。安装版源在 scripts/installer,独立于 Rust GUI/helper;编译工具通过忽略目录或 AI_TERMINAL_NSIS 配置,固定身份后才运行。命令见 scripts/README.md。

通用功能图标优先复用已集成的微软 Codicons,保持字号和缩放一致;新资产保留官方来源、原始许可和哈希。


管理 CLI 在 src/control,App 接入位于 src/app/control.rs;控制台入口 src/bin/ai-terminal-cli.rs 不初始化 GUI。改动要同步 docs/cli、docs/skills 与面向用户的 skills/ai-terminal 双语参考,不能把开发技能当作产品使用技能。build/release 同时生成三个 EXE;用户会话只临时继承本机实例能力。

CLI 原生操作回归由 cli_probe 扩展覆盖:通过真实外部 CLI 核对最小化设置、浮窗 50% 透明度、原 PTY PID、文件分页/Markdown/图片、合成本地静音 WAV 播放/暂停/跳转、只读 Git、显式样例输入和停止/重启。新增原生命令必须走 App::logic,读取内容不写回执,不能在 ctx.input 内再次获取 Context 锁。

session resume 的参数必须经过 control::resume_arguments 校验,经原有 shim 传递;旧管理器通过 agent_resume 能力预检明确拒绝。公开 Skill 的 version.json 与软件 Cargo 版本独立,版本变更需同步包校验和双语指南。右侧文件/Git 状态保存于 Workspace.session_panels,UiSettings 布尔值仅为活动会话投影,不在切换时新增磁盘写入。

Files in this skill

  • SKILL.en.md2.7 KB
  • SKILL.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.