@spences10/pi-coding-preferences

Pi extension that nudges agents toward Scott's coding workflow preferences

Packages

Package details

extension

Install @spences10/pi-coding-preferences from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@spences10/pi-coding-preferences
Package
@spences10/pi-coding-preferences
Version
0.0.2
Published
May 9, 2026
Downloads
not available
Author
spences10
License
MIT
Types
extension
Size
11.9 KB
Dependencies
1 dependency · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@spences10/pi-coding-preferences

Pi extension that blocks configured coding workflow anti-patterns before agents run them.

It ships with default preferences for Scott's workflow. Add user preferences at ~/.pi/agent/coding-preferences.json and project preferences at .pi/coding-preferences.json; when either file exists, configured rules are loaded instead of the built-in defaults.

{
	"rules": [
		{
			"name": "no-npm",
			"toolNames": ["bash"],
			"target": "command",
			"pattern": "^npm\\\\b",
			"reason": "Use pnpm in this repo."
		}
	]
}

Rule targets are command, path, or input. Patterns are JavaScript regular expressions.

pi install npm:@spences10/pi-coding-preferences

This is opt-in: installing the package globally applies it to your Pi sessions, but projects and downstream users do not inherit it unless they install the package.