Download the PHP package trk/processwire-boost without Composer

On this page you can find all versions of the php package trk/processwire-boost. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package processwire-boost

PHP 8.3+ ProcessWire 3.x MIT License

ProcessWire Boost

AI context bridge for ProcessWire CMS/CMF.

Boost ensures AI coding agents produce expert-level ProcessWire code by providing structured context: guidelines that encode best practices, task playbooks (skills) that teach specific patterns, a schema map for project awareness, and a JSON-RPC (MCP) server for live system access.

This is not a CLI tool collection — Boost is a knowledge layer. It sits between your ProcessWire project and the AI agent, ensuring every code suggestion, module scaffold, and schema change follows established conventions.


Table of Contents


Why Boost?

AI agents can write PHP — but writing correct ProcessWire code requires deep context:

Without Boost With Boost
Agent guesses API methods, often hallucinating Guidelines provide verified API patterns with version-specific signatures
Agent uses raw SQL or incorrect selectors pw-pages skill teaches operator syntax, sanitization, and performance rules
Agent creates fields/templates manually pw-migrations skill guides the agent through safe, versioned schema changes
Agent has no idea what templates or fields exist map.json provides a complete schema snapshot — no guessing
Agent cannot inspect live data MCP server exposes real-time queries, logs, and module info

Boost turns a general-purpose AI into a ProcessWire specialist.

How It Works

Architecture

Four context layers, each serving a different purpose:

Layer Format Purpose When Used
Guidelines Markdown in agent config Encode rules, conventions, API patterns Every prompt — always-on context
Skills SKILL.md playbooks Teach step-by-step workflows On-demand — agent activates when task matches
Schema Map map.json Project-specific templates, fields, roles Code generation — agent knows what exists
MCP Server JSON-RPC over stdio Live queries, logs, module info Runtime — agent inspects real data

Runtime Flow

Here is a brief outline of how an AI works under the hood at runtime with these layers:

  1. User asks for a task (e.g., "Create a migration to add a blog template").
  2. Agent reads Guidelines (e.g., AGENTS.md) for base framework rules & conventions.
  3. Agent activates relevant Skill (like pw-migrations) providing the specific, step-by-step workflow required.
  4. Agent reads Schema Map (map.json) to learn the existing project templates, roles, and fields.
  5. Agent queries MCP Server (pw_schema_read etc.) for live configurations or logs natively inside the processwire environment.
  6. Agent generates the code, reliably completing the task with full system awareness.

Requirements

Dependency Version
PHP >= 8.3
ProcessWire 3.x
processwire-console dev-main (peer dependency)

Installation

Note: processwire-console provides the vendor/bin/wire CLI runner. Boost commands are auto-discovered via Composer extra metadata — no manual registration needed.


Quick Start

1. Run the Installer

2. What Gets Generated

3. Verify


Context Layers

Guidelines

Guidelines are the always-on context layer — they are compiled into a single instruction block and embedded in the agent's primary instruction file (e.g., AGENTS.md, CLAUDE.md).

Every time the agent processes a prompt, it reads these rules. This is where conventions, security patterns, and API usage rules live.

What Gets Compiled

Section Content
Foundation System identity, PHP/PW version binding, installed module roster, skill activation menu
Boost CLI & MCP tool reference, dual MCP integration patterns
PHP Strict typing, constructor promotion, PHPDoc, enums, array shapes
ProcessWire Core API variables ($pages, $fields, $users, $input, $config, $sanitizer)
ProcessWire Development Hook system (addHookBefore/addHookAfter), module types, namespaces
ProcessWire Security Input sanitization, RBAC (hasRole, hasPermission, editable), CSRF tokens
ProcessWire Selectors Query syntax, operators, limit=, indexed field priority, selectorValue()

Source Priority

  1. Coreresources/boost/guidelines/*.md (7 files)
  2. Module{module}/.agents/guidelines/*.md (third-party modules)
  3. Fallback{module}/AGENTS.md (if no guidelines directory exists)

Merge Strategy

File State Behavior
File has <processwire-boost-guidelines> tags Replace content between tags only — your custom instructions are preserved
File exists, no tags Append tags after existing content
File doesn't exist Create from scratch with header

This means your custom instructions in CLAUDE.md or AGENTS.md survive across reinstalls.


Skills (Task Playbooks)

Skills are on-demand context — the agent activates a specific skill when the current task matches its domain. Each skill is a SKILL.md file containing a complete workflow guide.

Unlike guidelines (which are always present), skills are loaded only when relevant. This keeps the context window efficient while providing deep expertise when needed.

Built-in Skills (23)

Skill What It Teaches the Agent
pw-admin-ui Building ProcessWire Admin interfaces, Process modules, and Inputfield UIs
pw-brainstorming Validating architecture decisions before implementation (modules/templates/fields/hooks)
pw-custom-page-classes Building strongly-typed Page subclasses bound to specific templates
pw-docs-architect Writing/maintaining module docs, READMEs, architecture guides, CLI references
pw-expert Correct ProcessWire API usage patterns, console workflows, context-safe access to $page/$pages/$user
pw-maintenance Toggling maintenance mode safely (down/up) and managing downtime configuration
pw-migrations Safe, versioned schema changes and rollbacks (fields/templates/pages)
pw-module-development Native module architecture: init(), ready(), config, install/uninstall lifecycle
pw-module-fieldtype-inputfield Custom database fieldtypes and their corresponding input UI components
pw-module-filevalidator File upload validation, security normalization, MIME checking
pw-module-markup Frontend rendering systems using the ProcessWire Markup module pattern
pw-module-process Admin page pipelines, dashboards, routing, and RBAC within ProcessWire admin
pw-module-textformatter Textformatter modules to safely transform field output at render time
pw-pages Selectors + Page lifecycle: find/filter/create/edit/trash/delete, performance patterns
pw-queue Creating/dispatching/interacting with Queue jobs in ProcessWire
pw-scheduling Time-based tasks using cron expressions and scheduling wrappers
pw-security-audit Security audits for modules/hooks/templates: OWASP, sanitization, RBAC, CSRF
pw-seeder Database seeding patterns using file-based seeders
pw-systematic-debugging A disciplined approach to diagnosing bugs and unexpected behavior
pw-test Writing and running Pest tests in ProcessWire projects/modules
pw-url-routing URL/Path hooks for REST APIs, virtual pages, and custom endpoints
pw-writing-plans Turning specs into safe implementation plans (ProcessWire-native)
pw-writing-skills Creating and improving Boost skills (formatting, testing requirements, conventions)

Module-Provided Skills

Third-party ProcessWire modules can ship their own Boost skills. When selected during boost:install, these are merged alongside the built-in skills:

Module Skill What It Teaches the Agent
Htmx pw-htmx HTMX components, swaps, OOB fragments, and state management

How Skills Guide Agents

When an agent encounters a task like "create a migration to add a blog template", the pw-migrations skill activates and provides:

Without this skill, the agent would guess at the API and likely produce unsafe or incorrect migration code.

Skill Sync Model

ProcessWire Boost 0.1.x keeps skills canonical in .agents/skills/{skillName}/SKILL.md.


Schema Map

The schema map (map.json) gives agents project-specific awareness without requiring a live database connection.

Generated on every boost:install run, it contains:

Section Content
Templates Names, IDs, and assigned field lists
Fields Names, IDs, fieldtype class names, and labels
Modules Installed modules with titles and versions
Roles Names, IDs, and assigned permissions
Permissions Names, IDs, and titles

This map enables agents to:

Field Schema Extenders (Optional)

Boost supports optional field schema extenders so non-core or complex fieldtypes can append additional metadata.

Discovery paths:

Each manifest should return an array of extender class names (or instances) implementing Totoglu\Console\Boost\Schema\FieldSchemaExtender. Extenders run in discovery order; if multiple extenders return the same key, the later value wins.

Extender failures are non-fatal: Boost keeps generating the base schema and logs errors to processwire-boost.


MCP Server (Live Access)

The MCP server provides real-time access to the running ProcessWire system via JSON-RPC over stdio.

This is the most powerful context layer — it enables agents to inspect live data, run selectors against real pages, read logs, and manage modules without leaving the conversation.

Available Tools (28)

Category Tools Safety
Schema pw_schema_read, pw_schema_field_create, pw_schema_template_create Read + ⚠️ Write
Query pw_query, pw_execute Read + ⚠️ Guarded
Modules pw_module_list, pw_module_info, pw_module_install, pw_module_uninstall, pw_module_enable, pw_module_disable, pw_module_refresh, pw_module_upgrade Read + ⚠️ Write
Access pw_access_user_list, pw_access_user_create, pw_access_user_update, pw_access_user_delete, pw_access_role_create, pw_access_role_grant, pw_access_role_revoke, pw_permission_delete Read + ⚠️ Write
System pw_system_get_logs, pw_system_logs_tail_last, pw_system_logs_clear, pw_system_cache_clear, pw_system_cache_wire_clear Read + ⚠️ Write
Backup pw_system_backup, pw_system_backup_list, pw_system_backup_purge, pw_system_restore ⚠️ Write

MCP Config Formats

Boost auto-generates MCP configuration in each agent's native format during boost:install:

JSON — Standard Context (Claude Code, Cursor, Copilot, Amp, Junie, Kiro):

JSON — ${workspaceFolder} (Trae):

TOML (Codex):

OpenCode (nested command array):


Agent System

Boost uses a polymorphic Agent class hierarchy. Each agent declares how it wants to receive context:

Method Purpose
guidelinesPath() Where the agent reads its instruction file
skillsPath() Where task playbooks are deployed
mcpPathStrategy() How MCP paths are resolved (Relative, Absolute, WorkspaceFolder)
mcpConfigPath() Where MCP server configuration is written
exportSkill() How to format skills (override for YAML frontmatter, etc.)

Supported Agents

Agent Guidelines Path Skills Model MCP Config Path Mode
Amp AGENTS.md .agents/skills .amp/settings.json Relative
Antigravity AGENTS.md .agents/skills .agents/mcp_config.json Relative
Claude Code CLAUDE.md .agents/skills .mcp.json Relative
Codex AGENTS.md .agents/skills .codex/config.toml Relative
Cursor .cursorrules .agents/skills .cursor/mcp.json Relative
Factory Droid AGENTS.md .agents/skills .factory/mcp.json Relative
Gemini CLI GEMINI.md .agents/skills .gemini/settings.json Absolute
GitHub Copilot .github/copilot-instructions.md .agents/skills .vscode/mcp.json Relative
Grok Build AGENTS.md .agents/skills .grok/config.toml Relative
Junie AGENTS.md .agents/skills .junie/mcp/mcp.json Absolute
Kiro AGENTS.md .agents/skills .kiro/settings/mcp.json Relative
OpenCode AGENTS.md .agents/skills opencode.json Relative
Pi AGENTS.md .agents/skills Relative
Trae AGENTS.md .agents/skills .trae/mcp.json WorkspaceFolder
Zed AGENTS.md .agents/skills .zed/settings.json Relative

Auto Path Resolution: Each agent declares its mcpPathStrategy() via the McpPathStrategy enum. No manual configuration needed — paths are resolved automatically.

Detection & Filtering: The installer auto-detects existing agent footprints and only offers agents compatible with the selected feature set.

Adding a Custom Agent


Module Integration

Third-party ProcessWire modules can expose their own guidelines and skills to Boost.

Directory Structure

Discovery

  1. Boost scans site/modules/ and wire/modules/ for .agents/ directories
  2. Guidelines from .agents/guidelines/*.md are compiled into the agent instruction file
  3. Skills from .agents/skills/*/SKILL.md are synchronized into the central Boost skill store
  4. Fallback: if no .agents/guidelines/ exists, AGENTS.md in the module root is used

Tip: After installing a new module that provides Boost skills, run php vendor/bin/wire boost:update to sync the new guidelines and skills into your workspace.

Site-Level Overrides


CLI Commands

boost:install

Manage AI helper setup (ProcessWire Boost). Select features to install/update, deselect to remove.

Usage:

Options: Option Short Default Description
--guidelines false Install AI Guidelines
--skills false Install Agent Skills
--mcp false Install MCP Server Configuration
--modules -m null Comma-separated modules to install
--agents -a null Comma-separated agents to configure

Examples:

boost:update

Re-sync ProcessWire Boost guidelines & skills from saved configuration.

Usage:

Options: Option Default Description
--discover false In non-interactive runs, auto-add newly discovered modules to saved config
--no-discover false Skip discovery of newly available modules
--ignore-skills false Skip updating .agents/skills during the update run

Examples:

boost:mcp

Start the ProcessWire MCP server (JSON-RPC over stdio).

Usage:

Examples:

boost:build:docs

Generate ProcessWire Core API reference documentation from source files.

Usage:

Examples:

boost:add-skill

Add skills from a remote GitHub repository.

Usage:

Arguments: Argument Required Description
repo No GitHub repository (owner/repo or full URL)
Options: Option Short Default Description
--list -l false List available skills
--all -a false Install all skills
--skill -s null Specific skills to install (can be used multiple times)
--force -f false Overwrite existing skills
--skip-audit false Skip heuristic audit before installing remote skills
--skip-update false Skip automatic boost:update after installing skills

Examples:


Configuration

boost.json

The installer stores its state in .agents/boost.json:

This file enables incremental updates — rerunning boost:install preserves your selections as defaults.


Troubleshooting

Skills Not Appearing

MCP Server Not Working

Guidelines Not Updating

The merge strategy preserves custom content. To force regeneration:

ProcessWire Core Not Found


Language Policy

All code, documentation, comments, and variable names must be written in English.


Contributing

  1. Open an issue describing the change
  2. Follow existing code style (strict types, PHPDoc, camelCase)
  3. Ensure all PHP files pass php -l linting
  4. Test with at least two different agents

License

MIT


All versions of processwire-boost with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
trk/processwire-console Version >=0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package trk/processwire-boost contains the following files

Loading the files please wait ...