gpt 会话创建
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
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)
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)
ocw new gpt
Chat
ocw chat <hash> << 'EOF'
your prompt
EOF
Chat with File
ocw chat <hash> -f /path/to/spec.md << 'EOF'
implement based on this
EOF
Worktree Workflow
ocw new gpt --worktree→ get hash + path- Work in worktree:
cd /path/to/ocw-{hash} - Edit, commit, push as needed
- When done:
git worktree remove /path/to/ocw-{hash}
List Sessions
ocw list- 流狐分类
- 数据
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @majiayu000 · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 GPT strictly follows instructions. Provide as much high-level design context as possible: Architecture decisions, data flow, component responsibilities Constraints, edge cases, expected behaviors
Returns: Line 1: 6-char hash Line 2: worktree path (e.g., /path/to/ocw-abc123)
Create Session (read-only, no worktree)
Chat
Chat with File
ocw new gpt --worktree → get hash + path Work in worktree: cd /path/to/ocw-{hash} Edit, commit, push as needed
# 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
``` 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Prompt Guidelines → Create Session (with worktree for code edits) → Create Session (read-only, no worktree) → Chat → Chat with File → Worktree Workflow
要点 -> high-level design context · Avoid · Long-context coding. · GPT strictly follows instructions. · The worktree is an isolated git branch. · 1. ocw new gpt --worktree → get hash + path 2.
文件/命令 -> /path/to/ocw-abc123 · ocw new gpt --worktree · cd /path/to/ocw-{hash} · git worktree remove /path/to/ocw-{hash}
内容 SHA-256 -> 062e139dcc67
方法与流程
适用与边界
原文中的明确线索
/path/to/ocw-abc123、ocw new gpt --worktree、cd /path/to/ocw-{hash}、git worktree remove /path/to/ocw-{hash}