apply-tweaks
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "apply-tweaks" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e3315456f520ccc8429e230449d05373897caa895107eabf4e063d1797dc1226. Verify the upstream source and version against https://github.com/bluzir/claude-code-design before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Apply the buffered tweaks in pending.yaml to the source HTML files. Invoked when the user says “save tweaks,” “apply tweaks,” “persist panel changes,” or runs /apply-tweaks.
Introduction source: third_party · bluzir · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Apply buffered tweaks from pending.yaml to the source HTML file. Invoked when user says "save tweaks", "apply tweaks", "persist panel changes", or runs /apply-tweaks.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: apply-tweaks
description: Apply buffered tweaks from pending.yaml to the source HTML file. Invoked when user says "save tweaks", "apply tweaks", "persist panel changes", or runs /apply-tweaks.
argument-hint: <html-path>
allowed-tools: Read Write Edit Bash(ls:*) Bash(cat:*) Bash(mkdir:*) Bash(date:*) Bash(mv:*)Apply Tweaks
Persist queued tweak changes (in pending.yaml) back to the source HTML via Edit. Pattern from claude-pipe: files are state, Claude is the writer.
Session lookup
session-id for <html-path> = tweaks-{slugify(basename html-path without ext)}-{today YYYYMMDD}.
Session dir: artifacts/tweaks/<session-id>/.
If skipping date match (e.g. resume from yesterday), Bash(ls artifacts/tweaks/) and find the most recent matching prefix.
Pipeline
-
Read session state:
Read artifacts/tweaks/<session-id>/state.yaml Read artifacts/tweaks/<session-id>/pending.yamlIf
pending.yamlis missing or empty — report "no pending tweaks" and stop. -
Read HTML + schema:
Readthe target HTML (path from state.yaml or$0)- Extract the
__tweak_schemablock (JSON inside<script id="__tweak_schema">)
-
Validate each pending key:
- Every key in
pending.yamlmust exist in schema - Value type must match schema (color = hex, number = in [min..max], boolean)
- If any key invalid: report which + stop (do not partially apply)
- Every key in
-
Apply: for each key → value in pending:
- Primary pattern — CSS var on
:root: find--tweak-<key>: <old>;andEditto new value - Secondary pattern — marker block: find
<!-- tweak:<key> -->...<!-- /tweak:<key> -->andEditthe content inside - If neither marker found → fail loudly (HTML didn't use
/make-tweakablepattern)
- Primary pattern — CSS var on
-
Atomic write via Edit: each
Editis already atomic in Claude Code, so no tmp-rename dance needed. -
Append to log:
ts=$(date -u +%Y%m%dT%H%M%SZ) Write artifacts/tweaks/<session-id>/applied/$ts.yaml: applied_at: $ts changes: <copy of pending.yaml> -
Clear pending:
Write artifacts/tweaks/<session-id>/pending.yamlwith empty content (or{}) -
Update state:
Edit artifacts/tweaks/<session-id>/state.yaml: phase: idle → idle (no-op but bump timestamp) last_applied_at: <ts> -
Verify:
/done <html-path>— confirms file still renders, new values visible in preview. -
Report: "Applied N tweaks. Logged to
artifacts/tweaks/<session-id>/applied/<ts>.yaml. Pending cleared."
Revert path
If user says "revert last tweaks":
Bash(ls -t artifacts/tweaks/<session-id>/applied/)— get most recentReadthat file — get the delta- Reverse each change (find current value in HTML, restore previous)
- Append a new applied entry with
type: revertand reference to reverted file /done
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供将缓冲调整持久化到 HTML 文件的实用功能,适用于网页样式批量修改场景
- 具备完整的正向应用和反向回滚机制,形成闭环体验
Highlights
- 触发词覆盖全面,包含自然语言指令和命令形式,边界清晰
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档未设置显式的 When to Use 章节,但 Pipeline 部分已隐含使用场景说明
Recommendation: 建议增加显式的 When to Use 章节以提升可读性
Highlights
- Pipeline 步骤划分清晰,包含完整的 10 步执行流程和出口条件
- 文档结构完整,frontmatter 规范,逻辑连贯
Highlights
- 工具来源明确,参数使用规范,覆盖主要异常场景
- 具备原子性写入、日志记录和回滚机制,可靠性高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.