Skip to main content

paw-tools-setup

Sets up Pawbytes Tools module in a project. Use when the user requests to 'install paw tools', 'configure Pawbytes Tools', or 'setup utility tools'.

来源信息

仓库
pawbytes/skill-suites
最近来源活动
2026年4月2日 03:42
检测到的 SKILL.md 语言
英语
星标
108
分支
19

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
paw-tools-setup
description
Sets up Pawbytes Tools module in a project. Use when the user requests to 'install paw tools', 'configure Pawbytes Tools', or 'setup utility tools'.
# Pawbytes Tools Setup ## Overview Installs and configures Pawbytes Tools module into a project. Collects user preferences and writes them to: - **`{project-root}/.pawbytes/config/config.yaml`** — shared Pawbytes ecosystem configuration - **`{project-root}/.pawbytes/config/config.user.yaml`** — personal settings (gitignored, contains API keys) `{project-root}` is a **literal token** in config values — never substitute it with an actual path. It signals to the consuming LLM that the value is relative to the project root. ## On Activation 1. Read `./assets/module.yaml` for module metadata and variable definitions 2. Check if `{project-root}/.pawbytes/config/config.yaml` exists — if present, inform the user this is an update If the user provides arguments (e.g. `accept all defaults`, `--headless`, or inline values), map provided values to config keys, use defaults for the rest, and skip interactive prompting. ## Collect Configuration Ask the user for values. Show defaults in brackets. Present all values together so the user can respond once with only the values they want to change (e.g. "change language to Swahili, rest are fine"). Never tell the user to "press enter" or "leave blank" — in a chat interface they must type something to respond. **Default priority** (highest wins): existing config values > `./assets/module.yaml` defaults. **Module config**: Read each variable in `./assets/module.yaml` that has a `prompt` field. Ask using that prompt with its default value (or existing value if available). ## Write Files Write the collected configuration to: ``` {project-root}/.pawbytes/config/config.yaml ``` User-specific settings (API keys) go to: ``` {project-root}/.pawbytes/config/config.user.yaml ``` Create directories if they don't exist. ## Create Output Directories After writing config, create any output directories that were configured. Resolve the `{project-root}` token to the actual project root and create each path-type value that does not yet exist. Use `mkdir -p` or equivalent. ## Confirm Display what was written — config values set, fresh install vs update. Then display the `greeting` from `./assets/module.yaml` to the user. ## Outcome Once the user's `communication_language` is known (from collected input, arguments, or existing config), use it consistently for the remainder of the session.
在 GitHub 查看