project-state-init
Bootstraps project context and state management files.
Install
mkdir -p .claude/skills/project-state-init && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12687" && unzip -o skill.zip -d .claude/skills/project-state-init && rm skill.zipInstalls to .claude/skills/project-state-init
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
初始化 Codex 项目“项目记忆/状态管理”套件到当前项目根目录:复制 `AGENTS.md` 与 `.codex/skills/*`(handoff / handoff-resume / ops-sync 等)并可选生成 `.codex/state` 骨架。用于新项目快速启用长期项目工作流(ops-sync、handoff、审计)。Key capabilities
- →Copy `AGENTS.md` to project root
- →Copy `.codex/skills/*` to project root
- →Generate `.codex/state` skeleton
- →Confirm target directory
- →Run initialization script
- →Handle reinstallation policies (backup, overwrite, skip)
How it works
The skill executes a Python script to copy essential files and optionally generate a state skeleton, setting up the project memory and state management suite.
Inputs & outputs
When to use project-state-init
- →Setting up a new project agent suite
- →Initializing project state tracking
- →Syncing agent skills for long-term projects
About this skill
你是“项目状态初始化器”。目标:把“项目记忆套件”部署到当前项目根目录(或用户指定目录)。
默认源(可改)
默认优先从“当前这份已安装/已解压的本地套件根目录”复制;
若无法自定位,再回退到:
D:\lucky\Supplies\个人\AI\CLI\codex\skills\项目持久上下文v2
执行方式(脚本优先)
使用本 skill 自带脚本,避免手动复制出错:
- 确认目标目录(默认当前目录):
pwd
- 运行初始化(默认已安装跳过、缺失补装,不直接覆盖):
python "$env:USERPROFILE\.codex\skills\project-state-init\scripts\project_state_init.py"
常用选项:
- 指定目标目录:
--dest "D:\path\to\project" - 指定源目录:
--src "D:\lucky\Supplies\个人\AI\CLI\codex\skills\项目持久上下文v2" - 重装策略:
--mode backup|overwrite|skip(默认skip) - 初始化 state 骨架:
--init-state(创建.codex/state并生成BRIEF.md/progress.md/interaction-log.md)
示例(推荐:初始化并生成 state 骨架):
python "$env:USERPROFILE\.codex\skills\project-state-init\scripts\project_state_init.py" --init-state
运行环境与依赖:
- 需要 Python 3.8+
- 不需要安装任何依赖(纯标准库)
- 若你常用 conda(如
forfun-c),可用:conda run -n forfun-c python "$env:USERPROFILE\.codex\skills\project-state-init\scripts\project_state_init.py" ...
复制内容(默认)
{dest}/AGENTS.md{dest}/.codex/skills/*(从源的.codex/skills/*复制)
默认不复制源里的 .codex/state(避免把别的项目状态带进来)。如需 state,使用 --init-state 生成干净骨架。
安装逻辑
- 若目标项目根目录没有
.codex/,脚本会自动创建 - 若检测到目标项目已完整安装本套 skills,默认直接跳过整套搬运
- 若
.codex/skills/<skill>已完整存在,默认跳过 - 若只装了一部分,默认只补缺失文件
- 安装到项目后的本地
project-state-init也能继续作为复制源使用 --src与--dest不能重叠;若要复制到别处,目标必须是另一个项目目录- 只有显式使用
--mode backup或--mode overwrite时,才会重装已存在内容
完成后检查
Get-ChildItem -Force . | Select-Object Name,Mode
Get-ChildItem -Recurse -Force .codex\\skills | Select-Object -First 20 FullName
When not to use it
- →When the project memory/state management suite is already fully installed
- →When `--src` and `--dest` paths overlap
Prerequisites
Limitations
- →Does not copy `.codex/state` from source by default
- →Requires Python 3.8+
- →Cannot have `--src` and `--dest` overlap
How it compares
This skill automates the setup of a project memory and state management suite, ensuring consistent initialization for long-term project workflows, unlike manual file copying.
Compared to similar skills
project-state-init side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| project-state-init (this skill) | 0 | 3mo | Review | Beginner |
| jira | 11 | 6mo | No flags | Beginner |
| triaging-issues | 5 | 2mo | Review | Intermediate |
| landing | 0 | 3mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by luck7x
View all by luck7x →You might also like
jira
davila7
Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.
triaging-issues
pytorch
Triages GitHub issues by routing to oncall teams, applying labels, and closing questions. Use when processing new PyTorch issues or when asked to triage an issue.
landing
hoangsonww
End-of-session ritual. Close finished beads, file new ones for remaining work, run verify, commit in logical groupings, push. Work is not complete until git push succeeds.
ck
wanzicong
Claude Code 的每个项目持久化记忆。在会话启动时自动加载项目上下文,通过 git 活动追踪会话,并写入原生记忆。命令运行确定性的 Node.js 脚本——行为在不同模型版本间保持一致。
issue
siculo
>
gsd-ns-manage
rafaelribeiro96
config workspace | workstreams thread update ship inbox