总蛋白

数据 社区

技能解读

当前原文的自动摘译,尚未人工审校。

提示指南

GPT 严格遵循说明。提供尽可能多的高级设计上下文:架构决策、数据流、组件职责约束、边缘情况、预期行为避免:矛盾的需求(GPT 将努力协调冲突)

创建会话(使用工作树进行代码编辑)

返回: 第 1 行:6 个字符的哈希 第 2 行:工作树路径(例如,/path/to/ocw-abc123) 工作树是一个独立的 git 分支。在那里自由工作。

工作树工作流程

ocw new gpt --worktree→获取哈希+路径在工作树中工作:cd /path/to/ocw-{hash}根据需要编辑,提交,推送完成后:git worktree remove /path/to/ocw-{hash}

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
数据
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
94 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@majiayu000 · MIT
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# GPT-5.2 (via ocw)

Long-context coding. Best for: large refactors, feature implementation.

## Prompt Guidelines

GPT strictly follows instructions. Provide as much **high-level design context** as possible:

- Architecture decisions, data flow, component responsibilities
- Constraints, edge cases, expected behaviors

**Avoid**:

- Contradictory requirements (GPT will struggle to reconcile conflicts)
- Code snippets — GPT writes code well on its own; use tokens for design info instead

## Create Session (with worktree for code edits)

```bash
ocw new gpt --worktree
```

Returns:

- Line 1: 6-char hash
- Line 2: worktree path (e.g., `/path/to/ocw-abc123`)

The worktree is an isolated git branch. Work there freely.

## Create Session (read-only, no worktree)

```bash
ocw new gpt
```

## Chat

```bash
ocw chat <hash> << 'EOF'
your prompt
EOF
```

## Chat with File

```bash
ocw chat <hash> -f /path/to/spec.md << 'EOF'
implement based on this
EOF
```

## Worktree Workflow

1. `ocw new gpt --worktree` → get hash + path
2. Work in worktree: `cd /path/to/ocw-{hash}`
3. Edit, commit, push as needed
4. When done: `git worktree remove /path/to/ocw-{hash}`

## List Sessions

```bash
ocw list
```

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。