Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

pi-workflow圆周率工作流程

Agent Skill

pi-workflow 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,818

周安装

687

GitHub Stars

公开资料未说明

下载量

5,386
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:pi-workflow(圆周率工作流程)
来源仓库:https://github.com/kai-tw/pi-workflow
安装命令:
openclaw skills install pi-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install pi-workflow

简介

管理多步骤任务并持续优化 Agent 执行质量。

  • 记录错误、纠正与能力缺口,推动自我改进循环。
  • 适用于复杂项目启动与长期协作流程标准化。
  • 依赖用户反馈闭环,需定期回顾调整策略。pi-workflow 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 建议结合具体任务类型定制检查节点与评估标准。

SKILL.md

name
pi-workflow
description
Workflow orchestration for Pi's task management, self-improvement, and code quality standards. Use when starting new projects, managing multi-step tasks (3+ steps or architectural decisions), capturing lessons from mistakes, writing verifiable code, or establishing quality gates before completion. Includes planning templates, progress tracking, bug fixing autonomy, and a lessons capture system to prevent repeated mistakes.

Pi Workflow Orchestration

This skill provides Pi's structured approach to task management, quality assurance, and continuous self-improvement.

Core Workflows

1. Plan Node Default

Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions):

  • Write detailed specs upfront to reduce ambiguity
  • If something goes sideways, STOP and re-plan immediately—don't keep pushing
  • Use plan mode for verification steps, not just building

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
  • Offload research, exploration, and parallel analysis to subagents
  • For complex problems, throw more compute at it via subagents
  • One tack per subagent for focused execution

3. Self-Improvement Loop

  • After ANY correction from the user: update tasks/lessons.md with metadata (Priority, Status, Area, Pattern-Key)
  • Log command failures to tasks/errors.md for diagnosis patterns
  • Log feature requests to tasks/feature_requests.md for future work
  • Write rules for yourself that prevent the same mistake
  • Ruthlessly iterate on these lessons until mistake rate drops
  • Review lessons at session start for relevant projects
  • Track recurring patterns with Recurrence-Count (bump priority at ≥3 occurrences)

4. Verification Before Done

  • Never mark a task complete without proving it works
  • Diff behavior between main and your changes when relevant
  • Ask yourself: "Would a staff engineer approve this?"
  • Run tests, check logs, demonstrate correctness

5. Demand Elegance (Balanced)

  • For non-trivial changes: pause and ask "is there a more elegant way?"
  • If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
  • Skip this for simple, obvious fixes—don't over-engineer
  • Challenge your own work before presenting it

6. Autonomous Bug Fixing

  • When given a bug report: just fix it. Don't ask for hand-holding
  • Point at logs, errors, failing tests—then resolve them
  • Zero context switching required from the user
  • Go fix failing CI tests without being told how

Task Management

  1. Plan First: Write plan to tasks/todo.md with checkable items
  2. Verify Plan: Check in before starting implementation
  3. Track Progress: Mark items complete as you go
  4. Explain Changes: High-level summary at each step
  5. Document Results: Add review section to tasks/todo.md
  6. Capture Lessons: Update tasks/lessons.md after corrections

File Organization

  • tasks/todo.md — active sprint (current project)
  • tasks/lessons.md — corrections, insights, best practices (structured)
  • tasks/errors.md — command failures, API errors, exceptions (NEW)
  • tasks/feature_requests.md — missing capabilities, feature requests (NEW)
  • memory/YYYY-MM-DD.md — session logs (daily)
  • MEMORY.md — your curated memories (maintained by user)

See WORKFLOW_ORCHESTRATION.md for detailed reference.

See LESSONS.md for philosophy and framing.

See PHASE1-PHASE2-ENHANCED-LESSONS.md for structured lesson format and file separation.

See LESSONS_UPDATE_GUIDE.md for syncing lessons from workspace to skill.

Capturing Lessons

Lessons Format (Phase 1+2 Enhanced)

Each lesson gets structured metadata for filtering and recurring pattern detection:

## [LRN-YYYYMMDD-XXX] rule_name (category)

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high | critical
**Status**: pending | in_progress | resolved | promoted
**Area**: backend | infra | tests | docs | config
**Pattern-Key**: category.pattern_name (optional, for recurring detection)

### Summary
One-line description

### Details
Full context and examples

### Applied to
Projects or files where this was used

### Metadata
- Source: correction | insight | user_feedback
- Related Files: path/to/file
- Tags: tag1, tag2
- See Also: LRN-20250225-001 (if related to existing entry)
- Recurrence-Count: 1 (increment if you see it again)
- First-Seen: 2025-02-23
- Last-Seen: 2025-02-23

Errors & Features (NEW)

Log failures and feature gaps separately for better organization:

Errors (tasks/errors.md):

  • Command failures, API errors, exceptions
  • Include reproducibility, environment, suggested fix

Features (tasks/feature_requests.md):

  • Missing capabilities, things you wish existed
  • Include complexity estimate and suggested implementation

Syncing to Skill

Periodically merge workspace lessons into the published skill:

# From openclaw-workflow repo
python3 scripts/sync_lessons.py --workspace ~/.openclaw/workspace

# Dry run (preview changes)
python3 scripts/sync_lessons.py --workspace ~/.openclaw/workspace --dry-run

This merges workspace lessons into references/lessons.md for version control and sharing.

Hooks (Optional)

Enable automatic bootstrap reminders for self-improvement:

openclaw hooks enable pi-workflow

This injects a reminder at session start showing:

  • When to log lessons/errors/features
  • Format and metadata fields
  • Recurring pattern detection
  • Promotion paths

See hooks/openclaw/HOOK.md for details.


Core Principles

  • Simplicity First: Make every change as simple as possible. Minimal code impact.
  • No Laziness: Find root causes. No temporary fixes. Senior developer standards.
  • Minimal Impact: Changes should only touch what's necessary. Avoid introducing bugs.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

89.77%
按下载量换算4,835

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills