Agent skill

Profile Bootstrap

by devcodex-labs in devcodex-labs/devcodex

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

AGPL-3.0Auto-check: notes

Install Profile Bootstrap

skills CLI
$ npx skills add devcodex-labs/devcodex --skill profile-bootstrap -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install devcodex-labs/devcodex profile-bootstrap --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/devcodex-labs/devcodex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/profile-bootstrap .claude/skills/profile-bootstrap && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
profile-bootstrap
GitHub stars
439
Token cost
~2.1k tokens
SKILL.md length
512 words
Files
2
Skills in repo
70
Repo updated
First seen
Licence
AGPL-3.0

At a glance

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

  • SKILL.md covers 适用范围, 三档生成策略, 产出 profile-lite 初稿 and CLI 行为, plus 3 more sections
  • Calls node and git

What it does

Profile Bootstrap is an agent skill from devcodex-labs/devcodex. Profile 计划与分档生成 — 先预览目标根、推荐档位和文件动作,再按统一契约生成可追踪的 .devcodex/profile/ 草稿

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `intent.json`).

The repository describes itself as: Intent-driven AI coding workflow runtime for consistent context, skills, approvals, validation, and handoffs across six AI coding hosts. The licence is AGPL-3.0.

Example prompts

  • “/profile-bootstrap”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 1dd4525. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Profile Bootstrap loads about 2.1k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 512 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:213
    - ⛔ 自动扫描默认不主动读取 `.env` / `.env.local` 等文件;用户或项目明确要求读取时可按指定范围读取并写入 Profile 说明

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from devcodex-labs/devcodex at commit 1dd4525, republished under its AGPL-3.0 licence (© devcodex-labs). 512 words, ~2,085 tokens.

Download SKILL.mdSave it as .claude/skills/profile-bootstrap/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
profile-bootstrap
description
Profile 计划与分档生成 — 先预览目标根、推荐档位和文件动作,再按统一契约生成可追踪的 .devcodex/profile/ 草稿

Profile Bootstrap Skill

适用范围

  • 触发:devcodex profile plan / devcodex profile init CLI 调用,或用户以自然语言要求“生成/初始化/补建/升级/降档/修复当前项目 Profile”;自然语言不要求精确口令,最终仍解析为同一项目 ref 的 CLI plan/init
  • 不触发:devcodex init / devcodex init --claude 完成后仅 提示 "下一步运行 devcodex profile init",不自动生成(避免覆盖用户已有 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。语言配置无效时只对该层降级为自动判断,不得阻断任务。
Show full SKILL.md (201 more words)Show less

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 自动生成,需人工复核"

© devcodex-labs, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in content/skills/profile-bootstrap of devcodex-labs/devcodex.

  • SKILL.md
  • intent.json

Open the folder on GitHubat commit 1dd4525

Compare with similar skills

Profile Bootstrap next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Profile Bootstrap compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Profile Bootstrap this skilldevcodex-labs/devcodex439—~2.1kAutomated safety check: NotesAGPL-3.0
Profileccusage/ccusage19k—~430Automated safety check: PassCustom licence
Cpu ProfileClickHouse/ClickHouse50k—~1.9kAutomated safety check: NotesApache-2.0
Bootstrap Soulbytedance/deer-flow83k2 repos~1.2kAutomated safety check: PassMIT
Codex Profilessickn33/agentic-awesome-skills47k1 repos~1.7kAutomated safety check: PassMIT
Collectors Snmp Profilesnetdata/netdata81k—~3.1kAutomated safety check: PassGPL-3.0

Similar skills

  • Profile

    ccusage/ccusage

    Profiles ccusage performance. An agent skill from ccusage/ccusage.

    19k GitHub stars~430 tokensUpdated today
    Auto-check passed
  • Cpu Profile

    ClickHouse/ClickHouse

    Profile a ClickHouse query using the sampling query profiler and system.tracelog.

    50k GitHub stars~1.9k tokensUpdated today
    DatabasesAuto-check: notes
  • Bootstrap Soul

    bytedance/deer-flow

    Runs a short adaptive conversation with you and writes a personalized SOUL.md that defines your AI partner's name, personality, communication style and boundaries.

    83k GitHub starsUsed in 2 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Codex Profiles

    sickn33/agentic-awesome-skills

    Use codex-profiles to run Codex CLI or Codex Desktop with isolated CODEXHOME profiles for separate accounts, projects, and local state.

    47k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Author or review Netdata SNMP polling profiles, ddsnmp parsing, topology/licensing/BGP rows and profile-format documentation.

    81k GitHub stars~3.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Alloc Profile

    ClickHouse/ClickHouse

    Analyze a jemalloc (or other) allocation profile in collapsed stack format.

    50k GitHub stars~4.3k tokensUpdated today
    DatabasesAuto-check passed

More from devcodex-labs/devcodex

All 70 skills in this repo
  • Accessibility I18n

    devcodex-labs/devcodex

    无障碍与国际化专家 Owner — 当任务涉及可访问性、键盘操作、焦点、屏幕阅读器、ARIA、语言地区、本地化、RTL、翻译资源、用户可见文案或多语言文档时使用;要求把包容性体验和本地化验证绑定到真实用户路径。

    439 GitHub stars~718 tokensUpdated 21 days ago
    Auto-check passed
  • AI Agent System Architecture

    devcodex-labs/devcodex

    AI Agent 系统架构专家 Owner — 当任务涉及 Agent 路由、工具调用、上下文管理、记忆、状态机、权限、人机协作、可观测性、回放验证或模型辅助治理时使用;要求把 Agent 行为设计成可解释、可恢复、可审计。

    439 GitHub stars~2.4k tokensUpdated 21 days ago
    Auto-check passed
  • API Contract Architecture

    devcodex-labs/devcodex

    API 契约架构专家 Owner — 当任务涉及 public API、HTTP/SDK/CLI 契约、版本兼容、错误模型、分页过滤、幂等、Schema、类型、迁移或消费者影响时使用;要求先冻结消费者契约,再设计实现与验证。

    439 GitHub stars~865 tokensUpdated 21 days ago
    Auto-check passed
  • Architecture Design

    devcodex-labs/devcodex

    架构设计文档编排 Owner — 当用户要求架构设计、系统设计、技术架构或可指导开发、Review 与任务拆分的完整方案时使用;要求从业务流程反推节点、状态、数据、一致性、异常补偿、ADR 与实施任务。

    439 GitHub stars~1.1k tokensUpdated 21 days ago
    Auto-check passed
  • Audit Common

    devcodex-labs/devcodex

    审查公共维度 G0~G5 + Profile Freshness Check — 所有 audit 子类型必先执行的基础维度层

    439 GitHub stars~4.1k tokensUpdated 21 days ago
    Auto-check passed
  • Audit Session

    devcodex-labs/devcodex

    审计工作流的跨会话状态机 — 在 <audit-root/.audit-state/<session-id.json 持久化轮次/发现项/收敛状态,支持 Token 中断后精准恢复

    439 GitHub stars~1.8k tokensUpdated 21 days ago
    Auto-check passed

Questions about Profile Bootstrap

What does Profile Bootstrap do?

Profile 计划与分档生成 — 先预览目标根、推荐档位和文件动作,再按统一契约生成可追踪的 .devcodex/profile/ 草稿. Profile Bootstrap is an agent skill from devcodex-labs/devcodex.

How do I install Profile Bootstrap in Claude Code?

Run `npx skills add devcodex-labs/devcodex --skill profile-bootstrap -a claude-code`. Or copy the skill folder (content/skills/profile-bootstrap in devcodex-labs/devcodex) into .claude/skills/profile-bootstrap in your project. Claude Code loads it when a task matches its description.

How do I install Profile Bootstrap in Codex?

Run `npx skills add devcodex-labs/devcodex --skill profile-bootstrap -a codex`. Or copy the skill folder (content/skills/profile-bootstrap in devcodex-labs/devcodex) into .agents/skills/profile-bootstrap in your project. Codex loads it when a task matches its description.

Can I use Profile Bootstrap in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add devcodex-labs/devcodex --skill profile-bootstrap -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/profile-bootstrap, .gemini/skills/profile-bootstrap, .github/skills/profile-bootstrap and .opencode/skills/profile-bootstrap in your project.

What does Profile Bootstrap need to run?

Going by SKILL.md and its folder, Profile Bootstrap needs the command-line tools its instructions call (node and git). Our summary lists: Node.js.

Does Profile Bootstrap access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Profile Bootstrap safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Profile Bootstrap use?

Profile Bootstrap is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Profile Bootstrap use?

About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Profile Bootstrap?

Skills that share tags, products or a category with Profile Bootstrap: Profile (ccusage/ccusage, 19k stars), Cpu Profile (ClickHouse/ClickHouse, 50k stars), Bootstrap Soul (bytedance/deer-flow, 83k stars) and Codex Profiles (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Profile Bootstrap?

devcodex-labs (a GitHub organization) maintains it in devcodex-labs/devcodex, which has 439 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on September 17, 2026.

Source: devcodex-labs/devcodex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.