ZS

zach-short/personal-config

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 质量 64 趋势 20MIT

CLI 向导,支撑一个由代理驱动的工作架构——账本、板块、代码约定以及编码代理在触及仓库前读取的规则

概览

一个终端向导,在你的仓库中建立一个由代理驱动的工作风格。它会提出一系列简短的问题(谁运行 git commit,哪个模型运行哪个工作,工作写在哪里),并写出一组匹配的文件:工作标准、账本和板块、每种语言的代码约定,以及你的编码代理在接触任何东西之前读取的规则。它先扫描每个仓库,并根据其结果调整输出。 在你看到完整文件树并确认之前,什么都不会写入,任何被覆盖的程序都会先备份。personal-config undo 会把上次运行的文件放回去一次。你的答案会留在你的机器上。工具能做的两个网络调用列表在下面的控制保证下。 如果你用一个编码代理进行多个会话,每个会话开始时你都会反复解释你已经决定的内容。

概述(AI 翻译)

一个终端向导,在你的仓库中建立一个由代理驱动的工作风格。它会提出一系列简短的问题(谁运行git commit,哪个模型运行哪个工作,工作写在哪里),并写出一组匹配的文件:工作标准、账本和板子、各语言的代码约定,以及编码代理在接触任何东西前读取的规则。它首先扫描每个仓库,并根据其结果调整输出。

在你看到整个文件树并确认之前,任何程序都会被写入,且任何被覆盖的内容都会先备份。personal-config undo 会把上次运行的文件回归一次。你的答案会留在你的机器上。工具可以进行的两个网络调用,具体列在下面的控制保证中。

为什么

如果你使用编码代理进行多个会话,每次会话开始时你都会反复解释你已经决定的内容。这个工具会写出阻止这种情况的文档:真实的账本、下一步的板块,以及一个标准,描述工作如何界定范围、规模、交接和结案。文档才是关键。工具会为你的仓库写出文档的初稿。

要求

节点20或更新。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

personal-config

A terminal wizard that sets up an agent-driven working style in your repos. It asks a short list of questions (who runs git commit, which model runs which work, where work is written down) and writes a matching set of files: a working standard, a ledger and a board, per-language code conventions, and the rules your coding agent reads before it touches anything. It scans each repo first and shapes the output to what it finds there.

Nothing is written until you have seen the whole file tree and confirmed it, and anything a run overwrites is backed up first. personal-config undo puts the last run’s files back, once. Your answers stay on your machine. The two network calls the tool can make are listed under the control guarantees below.

Why

If you use a coding agent for more than one session, you spend the start of every session re-explaining what you already decided. This tool writes the documents that stop that: a ledger of what is true, a board of what is next, and one standard that describes how work is scoped, sized, handed off and closed out. The documents are the point. The tool writes a first draft of them for your repo.

Requirements

Node 20 or newer. The published package is one bundled file (dist/cli.js) plus one runtime dependency, @clack/prompts, so Bun is not needed to run it. CI installs the packed tarball with npm on Node 20, 22 and 24, on a machine with no Bun, and runs typecheck, lint, tests and doctor on Linux and macOS.

The hook scripts are bash, so on Windows they need WSL or Git Bash. The two guards (commit-guard.sh and delete-guard.sh) read the command with jq when it is installed. Without jq they fall back to a stricter match that can refuse more than they should. Everything else the wizard writes is plain text and works anywhere Node does.

npx personal-config setup

Run npx personal-config with nothing after it in a terminal, and it always opens a home screen. What the screen offers depends on where you are. A machine with nothing saved is asked to set up: first the global setup for your machine, then the profile manager. A folder not yet set up is offered setup, and a set-up folder is offered its check, its next board item and its standard changes. No screen shows more than six rows, and Other… holds the rest. In a pipe or a script the command prints the help text. setup, global and profile draw the same full-screen frame in a terminal, and --yes keeps them plain.

bunx personal-config setup works the same way. To install it once and run it by name in any folder, install it globally with npm:

npm install -g personal-config

To run from a clone, which is also how you run this repo’s own tests, install Bun 1.2.9 or newer:

git clone https://github.com/zach-short/personal-config
cd personal-config
bun install
bun run setup
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add zach-short/personal-config
新手?先看 mcpskill.org 教程 →