Ipollowork Maintainable Code 标志

Ipollowork Maintainable Code

社区热门
Devin-AXIS
ipollowork-maintainable-code

iPolloWork 代码变更的强制关卡,确保实现现代、精简、高性能、优先复用,并保持仓库归属清晰。每当 AI 创建、编辑、删除或重构应用代码、服务器代码、软件包、脚本、测试、依赖项、架构、路由、UI 或生成文件工作流时,都必须使用。创建文件前先复用现有代码,保持唯一事实来源,避免并行实现和无用目录,说明每个新文件或依赖项的必要性,并在完成前审查当前变更。

Add to TypingMind

概览

发布者Devin-AXIS
代码仓库iPolloWork
技能名称ipollowork-maintainable-code
星标数
6.9K
复刻数
1.1K
附带文件
3
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Devin-AXIS 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Ipollowork Maintainable Code AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Devin-AXIS/iPolloWork/tree/main/.codex/skills/ipollowork-maintainable-code
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Devin-AXIS/iPolloWork.git /tmp/iPolloWork
mkdir -p .claude/skills
cp -r /tmp/iPolloWork/.codex/skills/ipollowork-maintainable-code .claude/skills/ipollowork-maintainable-code
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Ipollowork Maintainable Code,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Ipollowork Maintainable Code。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Ipollowork Maintainable Code 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

iPolloWork Maintainable Code

Treat this as the repository's single code-quality Skill. Implement changes with the smallest coherent diff, modern platform patterns, bounded runtime cost, and one clear owner. Search and reuse before creating anything.

Non-Negotiable Outcomes

  • Modern: use the current repository stack and supported platform APIs; do not add legacy wrappers or compatibility layers without a real supported consumer.
  • Minimal: solve the requested job with the fewest concepts, files, dependencies, states, and routes that remain clear.
  • Performant: keep network, database, filesystem, bundle, render, and memory work bounded; optimize measured or structurally obvious hot paths.
  • Reusable: extend compatible components, hooks, services, schemas, types, and utilities before creating parallel versions.
  • Owned: keep one source of truth and place behavior in the narrowest existing owner.
  • Clean: do not create convenience directories, one-off design notes, duplicate implementations, generated source artifacts, or abandoned replacement files.

Required Workflow

  1. Find the repository root. Read AGENTS.md, the owning package manifest, the real entrypoint, and nearby implementations.
  2. Read references/repository-boundaries.md before adding a file, directory, dependency, API, table, or cross-package import.
  3. Define a change budget before editing: intended behavior, owning module, expected files touched, and whether any new file, directory, dependency, route, table, or persistent state is truly required. Default every category to zero.
  4. Search before creating anything:
    • Search component names, visible labels, route names, event names, type names, and distinctive behavior with rg.
    • Search apps/app/src/components/ui, apps/app/src/components, the target domain, apps/server/src, packages/types, and packages/ui as relevant.
    • Inspect exports and call sites, not just filenames.
  5. State the reuse decision: reuse unchanged, extend compatibly, extract for real multiple consumers, or create as the last choice. For each new file or dependency, record why no existing owner can absorb the change.
  6. Implement locally. Remove the replaced path in the same change; do not leave old, new, v2, fallback, or dead compatibility copies behind.
  7. Add focused tests at the owning layer. Do not duplicate server business logic, contracts, state, or validation in the desktop app.
  8. Run the narrow package checks, inspect the complete diff, then run:
powershell
node .codex/skills/ipollowork-maintainable-code/scripts/audit-changes.mjs
  1. Resolve every error. Fix warnings or give a concrete ownership/performance reason for keeping the exception.

Creation Gate

  • Add a file only when it has a distinct owner and responsibility that would make an existing file less coherent. A long file alone is not a reason to split it.
  • Add a directory only for a real subsystem or package with multiple cohesive files and a stable owner. Never create a directory to hold one small feature, one handoff, one report, or one Markdown note.
  • Do not add a new top-level directory without explicit user approval and a repository-level architectural reason.
  • Do not create new, old, v2, copy, backup, temp, tmp, misc, notes, drafts, handoff, or tdd-summary paths to avoid integrating with the current owner.
  • Do not create a design, plan, QA, summary, or TODO Markdown file for each small feature. Update an existing durable document only when future maintainers need information that code, tests, types, or comments cannot express.
  • Add a dependency only when the platform, current dependency graph, and local utilities cannot meet the requirement cleanly. Account for bundle/runtime cost, maintenance, license, and existing transitive capability.
  • Do not create a generic abstraction for one caller. Extract only after two real consumers need meaningful shared behavior or centralization prevents contract/security drift.

Reuse Decision

SituationAction
Existing API/component/helper meets the needImport and reuse it
Existing implementation differs only by presentation or configurationAdd typed props/options without changing existing defaults
Two real call sites need the same non-trivial behaviorExtract to the nearest shared owner
Similar-looking code has different domain rules or is unlikely to be reusedKeep it local; do not force an abstraction
No compatible implementation exists after searchingCreate one in the narrowest correct owner

Do not copy a component and rename it, create *V2, *New, *Copy, or duplicate a helper to avoid understanding its API. Do not add a generic abstraction for a single trivial use.

Modernity And Simplicity

  • Use typed boundaries, functional React, explicit async/error states, semantic controls, and current repository primitives.
  • Avoid any, broad type assertions, duplicated derived state, prop-to-state mirroring, hidden global state, and fallback branches that types or control flow make impossible.
  • Prefer composition and typed options over copied components or mode-heavy forks. Preserve existing defaults when extending shared code.
  • Delete obsolete code, exports, dependencies, flags, tests, and documentation when their supported path is removed.
  • Keep compatibility only for a named active format, client, or migration window. Document the removal condition beside the boundary.

Performance Gate

  • Keep lists and APIs paginated and bounded. Select only needed fields and avoid N+1 queries, request loops, and repeated filesystem scans.
  • Keep React subscriptions narrow. Derive values instead of synchronizing copies, avoid effects for pure computation, and lazy-load genuinely heavy optional surfaces.
  • Do not add caching or memoization without a clear owner, invalidation rule, and demonstrated reuse or cost.
  • Do not move server-owned data or heavy processing into the browser. Keep network and filesystem work out of render paths and short transactions free of network calls.
  • For a hot or high-volume path, record the relevant measurement, query plan, bundle effect, or complexity argument. Do not claim a performance improvement from code shape alone.

Frontend Rules

  • Reuse primitive controls from apps/app/src/components/ui.
  • Put app-wide composed UI in apps/app/src/components.
  • Put feature-specific UI, hooks, state, and behavior in apps/app/src/react-app/domains/<domain>.
  • Move UI to packages/ui only when more than one application genuinely consumes it.
  • Keep domain internals private. Share a stable public API or move truly cross-domain logic to a neutral owner instead of deep-importing another domain.
  • Use server APIs for server-owned behavior. Never reproduce filesystem, persistence, authorization, or orchestration logic in the client.
  • Put cross-process request/response contracts in packages/types; do not maintain separate client and server copies.

Server And Generated Files

  • Add thin HTTP handlers to apps/server/src/routes; put reusable business behavior in the existing owning service/extension module.
  • Reuse path guards from apps/server/src/paths.ts, including safe workspace-relative normalization and root containment helpers.
  • Never construct user-controlled filesystem paths with unchecked path.join or string concatenation.
  • Runtime exports, uploads, captures, renders, audio, images, and generated HTML must not be written under apps/server/src or another source directory.
  • Preserve the current session layout: <workspace>/design/<session-id>/... for design/PPT/web sessions and <workspace>/video/<session-id>/... for video sessions.
  • Put artifact kinds such as assets, renders, audio, captures, and exports below the owning session directory when appropriate.
  • Centralize directory creation and path resolution in one owning service. Routes and UI should pass identifiers, not invent disk paths.

Platform And Repository Safety

  • Keep Electron lifecycle and native integration in apps/desktop; do not leak shell-specific behavior into app domains.
  • Keep headless runtime orchestration in apps/orchestrator; do not create a second orchestration path in the UI or server.
  • Keep OpenCode external. Use its supported API, SDK, CLI, plugin, and configuration surfaces; do not fork or silently modify its internals.
  • Keep names consistently iPolloWork and ipollowork; do not introduce alternate product spellings in code, paths, docs, or user-facing text.
  • Do not commit secrets, credentials, local caches, build output, generated runtime artifacts, or commercial-only code.

Verification By Risk

  • TypeScript or UI: run the owning package typecheck and focused tests.
  • Server or plugin: run focused unit tests and the relevant package test.
  • Build or runtime boundary: build the affected package and start the real development entrypoint.
  • Observable UI: verify the actual browser/Electron flow using the repository experience-proof rules in AGENTS.md.
  • Dependency or OpenCode change: record old/new versions and verify startup, configuration, and the affected loading path.
  • Database or high-volume query: verify migrations, constraints, rollback/rejection behavior, bounded results, and the relevant query plan when representative data exists.

Completion Standard

  • No existing reusable implementation was missed.
  • No unjustified file, directory, dependency, route, table, state store, or abstraction was added.
  • No client/server contract was duplicated.
  • No runtime artifact was added to a source tree.
  • New files have one clear owner and do not create a parallel architecture.
  • Runtime work is bounded and no obvious N+1, request loop, broad subscription, or heavy eager import was introduced.
  • Existing behavior remains the default when extending shared code.
  • Replaced code and stale documentation were removed instead of retained as alternate versions.
  • Focused tests, package checks, git diff --check, and the maintainability audit pass; any unverified runtime surface is stated explicitly.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Ipollowork Maintainable Code AI 技能有什么作用?

iPolloWork 代码变更的强制关卡,确保实现现代、精简、高性能、优先复用,并保持仓库归属清晰。每当 AI 创建、编辑、删除或重构应用代码、服务器代码、软件包、脚本、测试、依赖项、架构、路由、UI 或生成文件工作流时,都必须使用。创建文件前先复用现有代码,保持唯一事实来源,避免并行实现和无用目录,说明每个新文件或依赖项的必要性,并在完成前审查当前变更。

为什么在 TypingMind 中使用 Ipollowork Maintainable Code?

因为您只需安装一次,就能搭配任何模型使用。Ipollowork Maintainable Code 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Ipollowork Maintainable Code?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Devin-AXIS/iPolloWork/tree/main/.codex/skills/ipollowork-maintainable-code。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ipollowork Maintainable Code?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Ipollowork Maintainable Code 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Ipollowork Maintainable Code 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Ipollowork Maintainable Code AI 技能免费吗?

Devin-AXIS 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇