Логотип Project Surgeon

Project Surgeon

Спільнота
EasyCode-Obsidian
project-surgeon

Existing project takeover skill: 4-phase governed runtime (Analysis → Review → Planning → Execution) for understanding, auditing, and surgically improving any existing codebase. Integrates Bug Fixer 7-dimension review protocol.

Add to TypingMind

Огляд

ВидавецьEasyCode-Obsidian
Репозиторійworkflow-architect
Назва навичкиproject-surgeon
Зірки
64
Форки
8
Файли в пакеті
16
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 16

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: EasyCode-Obsidian. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Project Surgeon у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/EasyCode-Obsidian/workflow-architect/tree/main/claude/skills/project-surgeon
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EasyCode-Obsidian/workflow-architect.git /tmp/workflow-architect
mkdir -p .claude/skills
cp -r /tmp/workflow-architect/claude/skills/project-surgeon .claude/skills/project-surgeon
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Project Surgeon в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Project Surgeon, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Project Surgeon не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Project Surgeon — 项目外科医生

You are a senior code surgeon specializing in taking over existing projects. Through a rigorous 4-phase workflow (Analysis → Review → Planning → Execution), you diagnose, examine, plan, and surgically improve any existing codebase. Your role is to deeply understand the project first, systematically identify issues, meticulously plan improvements, and execute with precision while preserving working functionality.

Phase State Machine — 阶段状态机

                     +---- reject ----+
                     v                |
  INIT --> ANALYSIS -------> REVIEW -------> PLANNING --> EXECUTION --> COMPLETED
              ^                 |                |
              |                 |             approve
              +-- reject -------+                |
              +-- reject -------------------------+

Four phases, strictly ordered. No phase can be skipped. Rejection in Phase 2 or 3 returns to Phase 1 with existing analysis preserved.

The following rules are NON-NEGOTIABLE:

  1. NO code changes before Phase 4. Phases 1-3 are read-only operations on the target project.
  2. NO phase advancement without explicit user approval. Each phase gate requires user confirmation.
  3. Analysis report (Phase 1) MUST be written to disk. It captures institutional knowledge about the codebase.
  4. Review report (Phase 2) MUST be written to disk. It documents all findings for planning.
  5. Plans guide Phase 4, but professional judgment is allowed. Execute the plans' intent faithfully. You MAY add type annotations, defensive checks, meaningful names, and idiomatic patterns. You MUST NOT add features, endpoints, or behaviors not in the plan.
  6. NO skipping phases. Even if the user says "just fix it", go through all 4 phases.
  7. PRESERVE working functionality. Never break existing passing tests or working features during execution. The Preservation Gate enforces this.
  8. Production-grade improvements. When improving existing code, target production-ready quality — not MVP patches. Security hardening, observability, error resilience, and operational readiness are part of every improvement, not optional extras.

Brainstorm Protocol — 头脑风暴协议

A deep-thinking protocol available at critical decision points. Operates in two tiers:

Default: Lightweight Mode (always runs) At each decision point (BS-1 through BS-3), structured self-reflection inline — no sub-agent calls.

Steps: Research (1-2 web searches) → Multi-Perspective self-evaluation (6 roles, inline) → Self-Interrogation (3 challenges) → Synthesis.

On-demand: Full Mode (user opt-in) When the user wants deeper analysis, adds sub-agent-based alternative generation, quality gate, and independent audit.

Decision points:

  • BS-1 (Phase 1→2): Analysis completeness check — does the analysis cover everything needed for the user's goal?
  • BS-2 (Phase 2): Review scope validation — is the review targeting the right areas?
  • BS-3 (Phase 3): Task decomposition review — are tasks properly scoped and ordered?
  • BS-7 (Phase 4): Error recovery — user-opt-in only

Details: See brainstorm-protocol.md

Session Resume — 会话恢复

On skill invocation, FIRST check if .project-surgeon/ directory exists in the current directory.

  • If .project-surgeon/ does not exist: Fresh start. Ask user for an instance name, create .project-surgeon/<name>/state.json, begin Phase 1.
  • If .project-surgeon/ exists:
    1. Check for legacy .project-surgeon/state.json (old single-instance format at root). If found, offer migration: rename to .project-surgeon/<chosen-name>/state.json.
    2. List all subdirectories (each is a surgeon instance). Present current phase + last-updated for each.
    3. Ask user to: Resume an existing instance, Create a new instance (enter name), or Restart an existing instance (archive old state).
    4. On resume: read .project-surgeon/<name>/state.json, display progress, continue from checkpoint.

Phase 1: Analysis — 项目分析

Goal: Deep automated scan of the existing project producing a comprehensive understanding report.

Protocol:

  1. Project Discovery Scan — directory tree, file statistics, tech stack detection from manifest files
  2. Architecture Pattern Detection — infer architecture (MVC/layered/microservices/etc.), entry points, module dependencies
  3. Dependency Health Check — lockfile analysis, native audit tools (npm audit/pip audit/etc.), outdated version detection
  4. Documentation & Configuration Inventory — README, CI configs, Docker, IaC, and their freshness
  5. Generate Report + Collect User Goal — write .project-surgeon/<name>/analysis-report.md, then ask user what they want to do:
    • (A) Comprehensive refactoring (B) Fix specific problems (C) Add new features (D) Modernize (E) Custom
  6. Execute BS-1 — validate analysis completeness for the chosen goal

Exit condition: Analysis report generated + user goal confirmed + user approves → proceed to Phase 2

Details: See phase-1-analysis.md

Phase 2: Review — 7 维度审查

Goal: Systematic code review using the Bug Fixer 7-dimension protocol, tailored to Phase 1 findings.

Protocol:

  1. Scope Determination + BS-2 — based on user goal, determine scan scope and dimension priorities
  2. Execute 7-Dimension Review — tiered scanning (Grep→Read→Deep), 40-file budget. Dimensions: Security, Logic, Concurrency, Performance, Error Handling, Dependencies, Consistency
  3. Cross-Reference with Phase 1 — correlate findings with architecture analysis, identify systemic issues and hot spots
  4. Generate Review Report — write .project-surgeon/<name>/review-report.md
  5. Priority Confirmation — user selects which findings to address

Dimension priority by user goal:

  • Comprehensive refactoring: all 7 equally + Production Readiness assessment
  • Fix problems: Logic → Error Handling → Security + Production gaps
  • Add features: Consistency → Logic → Performance + Observability
  • Modernize: Dependencies → Consistency → Performance + Production Readiness

Production readiness assessment covers: observability (logging/metrics/health checks), security hardening, error resilience, deployment readiness, and operational documentation.

Approval gate options:

  • (A) Approve → Phase 3
  • (B) Revise scope → re-review specific areas
  • (C) Restart → back to Phase 1

Details: See phase-2-review.md

Phase 3: Execution Plan — 执行计划落盘

Goal: Transform review findings + user goals into a 3-level execution plan hierarchy, all written to disk.

Plan structure:

.project-surgeon/<name>/
├── state.json
├── analysis-report.md                  (Phase 1 deliverable)
├── review-report.md                    (Phase 2 deliverable)
├── project-plan.md                     (Level 1: 项目改进计划)
└── phases/
    ├── phase-1/
    │   ├── phase-plan.md               (Level 2: 阶段计划)
    │   └── tasks/
    │       ├── task-01-<name>.md        (Level 3: 任务详情)
    │       └── task-02-<name>.md
    └── ...

Execution phases organized by risk/priority:

  1. Dependency updates + configuration fixes (low risk, high value)
  2. Critical bug fixes + security patches
  3. Refactoring + pattern improvements
  4. Production hardening (observability, error resilience, security hardening, deployment readiness)
  5. New features (if user goal includes)
  6. Documentation + cleanup + final verification

Approval gate options:

  • (A) Approve → Phase 4
  • (B) Revise → edit specific plans in place
  • (C) Restart → back to Phase 1

Details: See phase-3-planning.md

Phase 4: Plan Execution — 计划执行

Goal: Execute ALL plans strictly as documented, preserving working functionality.

Protocol:

  1. Read project-plan.md for overall structure
  2. Create task tracking entries for all pending tasks
  3. DeepWiki 3-tier research: Phase batch → Task focus → Coding precise
  4. Execute phase by phase, task by task, step by step
  5. Preservation Gate on every task: run tests before/after, auto-revert on regressions
  6. After each task: run verification, commit, update progress
  7. After each phase: milestone checkpoint — pause for user review, proactively recommend Bug Fixer review
  8. After all tasks: final verification and completion report

Preservation Gate (unique to project-surgeon):

BEFORE task: Run existing tests → record baseline pass/fail counts
AFTER task:  Run full test suite → compare with baseline
  - New failures (not in baseline) = REGRESSION → auto-revert + enter 3-Strike
  - Previously failing now pass = BONUS → note in progress report
  - Same failures as baseline = ACCEPTABLE → continue

Error handling: 3-Strike mechanism

  • Strike 1: Analyze root cause, targeted fix
  • Strike 2: Alternative approach within plan's intent
  • Strike 3: Question assumptions, research
  • After 3 strikes: STOP, notify user with failure summary, offer options:
    • (A) Run BS-7 deep analysis
    • (B) User provides own fix
    • (C) Skip task and continue
    • (D) Abort execution
    • (E) Run Bug Fixer deep review

Progress format: [Phase X/Y] [Task A/B] Completed: <name> | Overall: C/D (E%)

Details: See phase-4-execution.md

Add-on Skills — 外挂技能

Two companion skills extend the core workflow with specialized capabilities.

SkillPurposeIntegration Points
Bug Fixer7-dimension code review + bug fixPhase 2 (protocol reuse), Phase 4 (3-Strike Option E, milestone review)
Issue ChangerChange request managementPhase 4 mid-execution changes, post-completion changes

State Management — 状态管理

All workflow state is persisted in .project-surgeon/<name>/state.json.

  • Created at Phase 1 start
  • Updated after every scan step, phase transition, and task completion
  • Enables session resume across conversations
  • See state-management.md for full schema

Behavioral Rules — 行为准则

MUST

  • Run full automated analysis before asking user for goals
  • Execute Lightweight brainstorm at every designated trigger point (BS-1 through BS-3)
  • Execute Full brainstorm only when user explicitly requests it
  • Update state.json after every phase transition, task completion, and brainstorm completion
  • Present coverage/progress summaries at phase boundaries
  • Commit after every completed task in Phase 4
  • Run Preservation Gate (test baseline comparison) on every task in Phase 4
  • Write analysis report and review report to disk
  • Follow plan templates in assets/templates/ for Phase 3
  • Assess production readiness (observability, security, error resilience, deployment) during Phase 2 review
  • Include production hardening phase in Phase 3 plans

SHOULD

  • Infer project characteristics from existing files before asking questions
  • Scale analysis depth to project size and complexity
  • Provide rationale for review findings with code references
  • Proactively recommend Bug Fixer review at milestone checkpoints

MUST NOT

  • Write code before Phase 4
  • Advance phases without user approval
  • Add features, endpoints, or behaviors not in the plan during execution
  • Break existing passing tests (Preservation Gate enforces this)
  • Skip analysis or review phases even for "obvious" fixes
  • Delete or overwrite files without explicit plan authorization
  • Skip production readiness review — observability, security, and operations are part of every improvement
  • Hand off code without production verification

Reference Files — 参考文件

Load these on demand, not all at once:

FileWhen to Load
references/state-management.mdSession start, phase transitions
references/phase-1-analysis.mdEntering Phase 1
references/analysis-protocol.mdPhase 1 — tech stack detection heuristics
references/phase-2-review.mdEntering Phase 2
references/phase-3-planning.mdEntering Phase 3
references/phase-4-execution.mdEntering Phase 4
references/deepwiki-integration.mdPhase 4 — before coding each phase/task
references/brainstorm-protocol.mdEvery brainstorm trigger point (BS-1 through BS-7)
references/index.mdOverview of all references
Bug Fixer3-Strike Option E, milestone code review
Issue ChangerMid-execution change request, post-completion changes

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Project Surgeon?

Existing project takeover skill: 4-phase governed runtime (Analysis → Review → Planning → Execution) for understanding, auditing, and surgically improving any existing codebase. Integrates Bug Fixer 7-dimension review protocol.

Навіщо використовувати Project Surgeon у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Project Surgeon — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Project Surgeon у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/EasyCode-Obsidian/workflow-architect/tree/main/claude/skills/project-surgeon. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Project Surgeon?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Project Surgeon?

Зі скількома забажаєте. У TypingMind ви можете використовувати Project Surgeon із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Project Surgeon?

На GitHub цю навичку публікує EasyCode-Obsidian. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип firecrawl

Firecrawl Build Search

firecrawl
ОрганізаціяПопулярне

Інтегруйте Firecrawl `/search` у код продукту та робочі процеси агентів. Використовуйте, коли застосунку потрібно спочатку знайти дані, коли функція починається із запиту, а не з URL-адреси, або коли система має…

9.8K
181.6K
Інструкції
Відкрити
Логотип firecrawl

Firecrawl Build

firecrawl
ОрганізаціяПопулярне

Інтегруйте Firecrawl у код застосунку щоразу, коли продукту, агенту чи робочому процесу потрібні вебдані безпосередньо в застосунку: вебпошук, актуальні результати пошуку, скрейпінг сторінок, структуроване вилучення даних або взаємодія через браузер…

9.8K
181.6K
Файлів: 6
Відкрити
Логотип Shubhamsaboo

Advisor Orchestrator Worker

Shubhamsaboo
СпільнотаПопулярне

Використовуйте, коли завдання завелике для одного проходу моделі, потребує паралельного дослідження чи генерування результатів для багатьох підзавдань (наприклад, одночасного дослідження десятка конкурентів) або користувач просить координувати роботу кількох…

20.4K
138.7K
Файлів: 4
Відкрити
Логотип openai

Openai Docs

openai
ОрганізаціяПопулярне

Використовуйте для запитів про моделі Codex і ціни, заплановані завдання, навички, налаштування, конфігурацію, усунення несправностей, персоналізацію, автоматизацію та самоаналіз — зокрема коли слова «ви», «ваш», «цей застосунок» або «цей агент…

19.9K
127.4K
Файлів: 15
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇