package-pi-autoformat

Apply repository-configured autoformat rules to touched files in packages/pi-autoformat.

143|52|Updated May 15, 2026
One-click install
npx skills add https://github.com/gotgenes/pi-packages --skill package-pi-autoformat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-pi-autoformat
Source: https://github.com/gotgenes/pi-packages/tree/main/.pi/skills/package-pi-autoformat
Command: npx skills add https://github.com/gotgenes/pi-packages --skill package-pi-autoformat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Package-specific context for the pi-autoformat extension to help ensure consistent formatting when working on code, tests, or docs in packages/pi-autoformat/.

Core Features & Use Cases

  • Respect repository-configured formatters and project-level overrides to align style across code, tests, and docs.
  • Apply formatting only to files touched by the agent, surfacing non-fatal formatting issues to avoid blocking edits.
  • Load and enforce project-scoped formatting rules to reduce drift in the package Pi extension.

Quick Start

Use this skill when editing files under packages/pi-autoformat to ensure formatting adheres to the project autoformat configuration.

Frequently Asked Questions about package-pi-autoformat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply package-scoped autoformat rules to Pi package code?

Package-scoped autoformat rules are applied by loading formatter configurations from project and global config files, formatting only touched files across code, tests, and docs to ensure formatting adheres to repository-configured conventions.

What is context-aware autoformatting for repository-configured conventions?

Context-aware autoformatting is a mechanism that applies project-level formatter overrides and repository-configured rules to reduce style drift, ensuring code, tests, and docs align across the package.

How do I format only touched files in a Pi extension package?

You format only touched files by using the autoformat extension to apply formatting exclusively to files edited by the agent, reducing unnecessary changes and limiting formatting scope to modified content.

Does autoformatting block edits when formatting issues occur?

Autoformatting does not block edits; it surfaces non-fatal formatting issues to avoid blocking edits, allowing the agent to continue working while still highlighting configuration or style problems.

Can I use project config files to enforce formatting rules across code, tests, and docs?

Yes, you can load and enforce project-scoped formatting rules from project config files and global config to align style across code, tests, and docs within the package.

Why does formatting drift occur in Pi package code?

Formatting drift occurs when repository-configured formatters and project-level overrides are not consistently loaded and enforced, causing style inconsistencies across code, tests, and docs.