Logo vun Profile Bootstrap

Profile Bootstrap

Organisatioun
devcodex-labs
profile-bootstrap

Profile 计划与分档生成 — 先预览目标根、推荐档位和文件动作,再按统一契约生成可追踪的 <active-root>/profile/ 草稿

Iwwersiicht

Editeurdevcodex-labs
Repositorydevcodex
Skill-Nummprofile-bootstrap
Stären
433
Forks
44
Matgeliwwert Fichieren
1
LizenzAGPL-3.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum devcodex-labs op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Profile Bootstrap an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/devcodex-labs/devcodex/tree/main/content/skills/profile-bootstrap
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/devcodex-labs/devcodex.git /tmp/devcodex
mkdir -p .claude/skills
cp -r /tmp/devcodex/content/skills/profile-bootstrap .claude/skills/profile-bootstrap
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Profile Bootstrap an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Profile Bootstrap automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Profile Bootstrap net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Profile Bootstrap Skill

适用范围

  • 触发:devcodex profile plan / devcodex profile init CLI 调用,或用户以自然语言要求“生成/初始化/补建/升级/降档/修复当前项目 Profile”;自然语言不要求精确口令,最终仍解析为同一项目 ref 的 CLI plan/init
  • 初始化入口:devcodex init 使用同一生成契约初始化 workspace 基础 Profile;指定 --profile <项目相对路径> 时同时初始化目标项目 Profile,已有文件默认保留。后续通过 devcodex profile plan / devcodex profile init --tier <档位> 预览或补齐所需模板;init --claude 等 workspace 宿主选择入口已禁用,不能当作 Profile 初始化方式。
  • workspace-namespace:当 <workspace>/.devcodex/layout.json 启用后,在工作区根执行 devcodex profile init 应治理 .devcodex/workspace/profile/;在明确项目上下文执行时治理 .devcodex/<project>/profile/。已识别物理项目但 Profile 缺失时仍保持 project-bound,使用 workspace base 并把项目事实标为未验证;只有完全没有项目时才落 .devcodex/workspace/。运行时多项目 warning 必须提示 .devcodex/workspace/profile/,不得继续指向 legacy .devcodex/profile/。
  • Profile 初稿或复审必须考虑 ProfileReadChainGate / ServiceNormCoverageGate:记录 workspace base、project overlay、config.local overlay、fallback、全部服务集合、docs 自维护链、导航、版本、构建、报告和记忆消费者;从单服务抽公共 Profile 规则时执行 StrongestProfileSourceGate / ServiceSpecificResidueSweep。
  • 公开包、SDK、CLI、多模块、文档站、public API 或 runtime 配置明显的项目,Profile 初稿/复审必须执行 FeatureInventoryProfileGate / FeatureInventorySchemaGate:06-功能清单.md 是默认唯一规范清单,新生成内容使用 FeatureInventorySchemaV2,在 V1 十字段基础上增加生命周期状态、证据状态、证据日期和证据引用;扫描不能证明的字段写 unverified / 待人工确认,不得编造成 implemented/validated/released。validator 兼容读取 V1,但 V1 投影证据状态必须保持 unverified。
  • 执行 ProfileGenerationContractGate / ProfileTierStandardGate / ProfileLifecycleClassificationGate:生成器、CLI、加载器、validator、Prompt 和公开文档必须消费同一档位契约。首次创建默认仍以 profile-lite 为目标,但必须展示基于 package/目录/脚本证据的推荐档位;用户通过 --tier 明确选择后才升级。
  • 执行 ProfileTierMigrationSafetyGate:默认继承已检测档位;升级只补缺失文件并保留已有正文;未带 --allow-downgrade 时拒绝降档;显式降档只改档位声明并保留高档文件;--dry-run / profile plan 对目录、文件和备份必须零写入。
  • 执行 ProfilePathPortabilityGate:新生成 Profile 的直属 README 声明 portable-v1;项目内路径写语义根或相对路径,真实本机外部路径用同一行 machine-local marker 标注。只验证本次显式目标 Profile,禁止为了迁移一个项目而枚举或修改同工作区其他项目;未声明该契约的 legacy Profile 保持兼容。
  • 执行 AllDevCodexProfileValidationGate:workspace-namespace、规范维护项目或用户要求全项目校验时,生成/复审后运行 node scripts/validate-all-profiles.js --workspace <workspace-root> 或记录不可执行原因。
  • 执行 ProfileGitExecutionPolicyGate:新 Profile 的 extensions.devcodex.git 默认写 unverified / no-auto-branch / explicit-only / unverified integration / sharedActionsRequireExplicitAuthorization=true;只有项目事实与证据明确时才把 project overlay 收窄为 solo/keep-current 或团队策略,overlay 不得把共享动作授权降为 false。
  • 执行 ProfileReleaseTruthAuthorityMatrixGate:DevCodex Profile 草稿或同步不得从历史 changelog/versioned docs 推断当前版本;以 package/plugin 为 release authority,对账 project 01/05/07 与标明 DevCodex 规范版本的 workspace 01。发现 current claim 漂移时生成修订动作并让 validator 非零,历史 release 与 06 分能力状态保持原语义。

三档生成策略

档位Bootstrap 行为后续补齐
profile-lite默认生成 README.md、01-项目信息.md、02-架构约束.md、03-代码风格.md、config.json人工复核后定稿
profile-standard生成 lite 全部文件 + 04-测试规范.md + 05-发布规范.md + 06-功能清单.md;未验证事实保持显式未确认由真实脚本、CI、发布流程和源码证据复核 FeatureInventorySchemaV2;兼容读取 V1
profile-closed-loop生成 standard 全部文件 + 07-用户文档与契约规范.md;适用于规范维护、SDK/CLI/文档站/public API 等完整闭环项目持续维护活文档,必要时补条件 / 本地文档

生命周期分类:

  • 稳定基线:项目事实变化才更新。
  • 活文档:功能、API/CLI/Hook、测试、发布、文档站、配置或用户文档变化时同步更新。
  • 条件 / 本地文档:命中本地连接、数据、服务、外部系统或 overlay 时维护;conditional-required 不作为项目档位。

产出 profile-lite 初稿

01-项目信息.md

数据源:

来源字段
package.jsonname / version / description / repository / engines.node
CHANGELOG.md 首行表格当前版本 / 当前阶段标题
.git/HEAD 或 git symbolic-ref HEAD当前分支
git config remote.origin.url仓库 URL(兜底)

写入模板:

markdown
# 01 — 项目信息

> 由 `devcodex profile init` 于 {YYYY-MM-DD} 自动生成,需人工复核后定稿。

## 基础信息
- 项目名:{name}
- 当前版本:{version}
- 描述:{description}
- Node 版本:{engines.node}
- 仓库:{repository.url}

## 当前阶段
- 主版本分支:{branch}
- 阶段摘要:{CHANGELOG 顶部摘要}

02-架构约束.md

数据源:

来源字段
顶层目录扫描(深度 ≤2,跳过 node_modules/.git/dist/build)目录树
lerna.json / pnpm-workspace.yaml / package.json#workspacesmonorepo 识别
tsconfig.json 中的 references子项目关系
顶层 services/ 或 packages/ 目录存在服务/包结构

写入模板:

markdown
# 02 — 架构约束

> 由 `devcodex profile init` 于 {YYYY-MM-DD} 自动生成,需人工复核后定稿。

## 项目结构(自动扫描)

\`\`\`
{目录树,深度2}
\`\`\`

## 架构特征
- 组织模式:{single | monorepo:lerna | monorepo:pnpm | monorepo:npm}
- 服务拆分:{有 services/N | 无}

03-代码风格.md

数据源:

来源推断
.eslintrc* / eslint.config.*ESLint 启用 + 主要规则集
.prettierrc* / prettier.config.*Prettier 启用 + 主要选项
tsconfig.jsonTypeScript strict / target / module
.editorconfigindent / charset
package.json#scriptslint / format / test 命令

写入模板:

markdown
# 03 — 代码风格

> 由 `devcodex profile init` 于 {YYYY-MM-DD} 自动生成,需人工复核后定稿。

## 静态检查
- ESLint:{启用 + extends 摘要 | 未启用}
- Prettier:{启用 + 主要选项 | 未启用}
- TypeScript:{strict {bool} / target {ES2022} | 未启用}

## 编辑器
- 缩进:{2/4 space | tab}
- 字符集:{utf-8}

## 工程命令
- lint: `{package.json scripts.lint | 未定义}`
- format: `{package.json scripts.format | 未定义}`
- test: `{package.json scripts.test | 未定义}`

config.json

json
{
  "mode": "dev",
  "agent": "copilot | claude-code | codex",
  "extensions": {
    "devcodex": {
      "language": {
        "schemaVersion": "LanguagePreferenceV1",
        "mode": "auto | inherit",
        "locale": null
      }
    }
  }
}
  • mode 默认 dev(仅 devcodex profile init --prod 时设为 prod)
  • agent 从当前宿主证据推断;无法识别时才回退为 copilot
  • workspace Profile 的语言默认 auto;project Profile 默认 inherit。用户可把目标层改为 fixed 并配置 locale;project auto 明确抑制 workspace fixed。语言配置无效时只对该层降级为自动判断,不得阻断任务。

CLI 行为

Node.js 默认基线

  • 生成或复核 Node.js 项目 Profile 时,engines.node 缺失或低于 >=18 应标注为待人工确认的风险。
  • 新项目或新包默认建议 Node 版本:>=18;低于 v18 只能作为项目例外,并须在 01-项目信息.md 写明业务理由、兼容风险和验证证据。
  • CI matrix、README 运行时说明和 Profile 的 Node 基线应保持一致。

devcodex profile plan / devcodex profile init --dry-run

先输出目标 Profile 根、已检测档位、请求档位、推荐档位、目标档位、mode 和逐文件动作;不得创建目录、写文件或创建备份。推荐路径是先运行 plan,再运行相同参数的 init。

devcodex profile init

步骤动作
1检查目标 Profile 根是否存在 → legacy 为 .devcodex/profile/,workspace-namespace 工作区根为 .devcodex/workspace/profile/,明确项目为 .devcodex/<project>/profile/;缺失时先形成 zero-write preview 与唯一目标 receipt
2检测现有档位;未显式指定 --tier 时继承现有档位,首次创建默认 profile-lite,同时输出证据驱动的推荐档位
3纯 create-missing 在 physical project .tmp/devcodex-profile/<operationId> 生成完整 staging,校验 UTF-8、tier、portable marker、JSON 与既有 Profile validator,再执行 target-absent CAS 和同卷整目录 rename;锁绑定 owner token 与有界租期,启动时只回收已过期 owner 的精确 operation,失锁旧进程不得提交或删除新 owner 锁;目录已提交但读回中断时,下次运行补做 manifest 读回;失败只精确清理本 operationId,不得留下半套 Profile
4输出生成/跳过/档位更新/备份计数与 ProfileMaterializationReceiptV1;自动生成生命周期只能是 generated-draft,必须提示人工复核所有 unverified 字段,不能把 validator 通过冒充 reviewed
5退出码 0(即使全部 skip)

create-missing 之外的已有 Profile、--force、升级和显式降档保持原有逐文件兼容路径;自动补给不得覆盖、降档或修改兄弟项目。重复 create-missing 在目标已存在时返回 unchanged。

devcodex profile init --force

步骤行为差异
2继承当前档位并覆盖该档位的已有文件;每个文件先备份为 <file>.bak.{timestamp}

档位迁移

  • 升级:devcodex profile plan --tier profile-standard 预览,确认后以 profile init 执行;只补目标档位缺失文件,README 仅更新档位声明。
  • 降档:必须显式同时传 --tier <lower-tier> --allow-downgrade;高档文件保留,避免不可逆信息损失。
  • 未知参数、缺少 --tier 值或非法档位必须友好失败,退出码为 1,不输出内部堆栈。

devcodex status 扩展

输出新增一行:

text
profile        complete  (profile-standard; files 6/6; semantic 2/2; config present)
profile        partial   (profile-standard; files 5/6; semantic 1/2; config missing)
profile        missing   (files 0/4; semantic 0/1; config missing — run: devcodex profile plan)

与其他规范的对齐

关联点说明
15-memory.instructions.mdagent 字段必须使用固定枚举
02-架构约束.md 项目级文件本 Skill 生成的是 模板初稿,定稿规则不变(须人工填入业务约束)
Profile 缺失行为Profile 缺失时 ENV_MODE 默认 prod;本 Skill 推动用户尽早完成 dev 模式启用
Git 默认未核实协作模式时不自动创建/切换分支;branch/worktree/commit/cherry-pick/push 分项授权,Profile 声明不等于本轮执行授权

⛔ 禁止

  • ⛔ 已有 Profile 文件存在时禁止默认覆盖(须 --force 才覆盖且必须先备份)
  • ⛔ profile plan / --dry-run 禁止写目录、文件或备份;未显式授权禁止降档
  • ⛔ 功能清单禁止用关键词命中或无事实来源的占位行冒充完成;01-项目信息.md 不得复制 06-功能清单.md 的完整规范表
  • ⛔ 自动扫描默认不主动读取 .env / .env.local 等文件;用户或项目明确要求读取时可按指定范围读取并写入 Profile 说明
  • ⛔ 禁止在 Profile 长期规范中固化当前工作盘符 / 用户目录;禁止借路径迁移扫描或修改非目标项目
  • ⛔ 生成内容须明确标注"由 devcodex profile init 自动生成,需人工复核"

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Profile Bootstrap?

Profile 计划与分档生成 — 先预览目标根、推荐档位和文件动作,再按统一契约生成可追踪的 <active-root>/profile/ 草稿

Firwat Profile Bootstrap op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Profile Bootstrap besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Profile Bootstrap an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/devcodex-labs/devcodex/tree/main/content/skills/profile-bootstrap an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Profile Bootstrap benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Profile Bootstrap benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Profile Bootstrap domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Profile Bootstrap gratis?

Jo. De Skill gëtt vum devcodex-labs ënner der Lizenz AGPL-3.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇