Skip to main content

tidyfactor-php

Modern server-rendered PHP 8.x modular monolith (Flight + Medoo + Plates) with Contextual Decision Layer (CDL). Features WordPress-scale architecture, auto-discovered plugin hooks, dynamic theme engine, RBAC, and locked admin modules. Trigger on commands 'brief', 'init', 'admin', 'plugins', 'themes', 'events', 'rbac', 'secure', 'route', 'pages', 'media', 'i18n', 'seo', 'deploy'.

来源信息

仓库
TidyFactor/PHP
最近来源活动
2026年9月5日 13:22
检测到的 SKILL.md 语言
英语
星标
2
分支
0

安装方式

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

检查来源文件

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

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
tidyfactor-php
description
Modern server-rendered PHP 8.x modular monolith (Flight + Medoo + Plates) with Contextual Decision Layer (CDL). Features WordPress-scale architecture, auto-discovered plugin hooks, dynamic theme engine, RBAC, and locked admin modules. Trigger on commands 'brief', 'init', 'admin', 'plugins', 'themes', 'events', 'rbac', 'secure', 'route', 'pages', 'media', 'i18n', 'seo', 'deploy'.
# TidyFactor PHP (Modern Server-Rendered Modular Monolith) A command dispatcher for full-stack server-rendered PHP monoliths. This router declares commands and workflows without performing execution directly. ## Commands | User intent | Command | What it loads | |---|---|---| | Strategic Monolith Discovery & Brief Resolution | `references/commands/brief.md` | `references/workflows/brief.md` + `references/memory/decision-points.md` + `references/memory/quality-bar.md` | | Primary deliverable — scaffold a new PHP monolith | `references/commands/init.md` | `references/workflows/init.md` + `references/memory/architecture.md` | | Construct & protect the 13 locked admin panel modules | `references/commands/admin.md` | `references/workflows/admin.md` + `references/memory/architecture.md` | | Auto-discovered plugin system & hook listeners | `references/commands/plugins.md` | `references/workflows/plugins.md` + `references/memory/quality-bar.md` | | Dynamic theme system & template layout overrides | `references/commands/themes.md` | `references/workflows/themes.md` + `references/memory/architecture.md` | | Global event dispatcher & lifecycle listeners | `references/commands/events.md` | `references/commands/events.md` + `references/memory/quality-bar.md` | | Role-Based Access Control (RBAC) & permission guards | `references/commands/rbac.md` | `references/commands/rbac.md` + `references/memory/quality-bar.md` | | Security hardening, CSRF tokens, XSS & SQLi shields | `references/commands/secure.md` | `references/commands/secure.md` + `references/memory/quality-bar.md` | | Front controller routing (FlightPHP route patterns) | `references/commands/route.md` | `references/commands/route.md` + `references/memory/architecture.md` | | Content page controllers & Plates template views | `references/commands/pages.md` | `references/commands/pages.md` + `references/memory/architecture.md` | | Media upload manager & image variant processing | `references/commands/media.md` | `references/commands/media.md` + `references/memory/quality-bar.md` | | Multi-driver caching (file, Redis, APCu) | `references/commands/cache.md` | `references/commands/cache.md` + `references/memory/quality-bar.md` | | Multilingual translation dictionary & RTL views | `references/commands/i18n.md` | `references/commands/i18n.md` + `references/memory/quality-bar.md` | | Structured JSON/text logging & audit trails | `references/commands/logging.md` | `references/commands/logging.md` + `references/memory/quality-bar.md` | | SEO metadata, OpenGraph tags, sitemap generation | `references/commands/seo.md` | `references/commands/seo.md` + `references/memory/quality-bar.md` | | Medoo database repository queries & migrations | `references/commands/store.md` | `references/commands/store.md` + `references/memory/decision-points.md` | | Business domain services & dependency injection | `references/commands/logic.md` | `references/commands/logic.md` + `references/memory/architecture.md` | | Reusable view components & UI macros | `references/commands/compo.md` | `references/commands/compo.md` + `references/memory/architecture.md` | | Asset pipeline, cache busting, and minification | `references/commands/assets.md` | `references/commands/assets.md` + `references/memory/quality-bar.md` | | Prepare shared/cPanel hosting deployment & .htaccess | `references/commands/deploy.md` | `references/commands/deploy.md` + `references/memory/quality-bar.md` | Read only the command file that matches the request. Do not load all commands simultaneously. ## Non-Negotiable Invariants 1. **Contextual Decision Layer (CDL)**: Resolve monolith baselines via `/brief` or `.tidyfactor/php-brief.md` before emitting code. 2. **Server-Side Rendered PHP**: Browser communicates directly with PHP. No SPA or headless React layers. 3. **Medoo Prepared Statements**: Never concatenate SQL queries directly. Use Medoo parameterized bindings. 4. **Strict Types & PSR-12**: Every PHP file must declare `declare(strict_types=1);` with explicit typing. 5. **7-Axis Pre-Emit Critique**: All generated code must be evaluated with `/* Pre-emit critique: P5 H5 E5 S5 R5 V5 D5 */`.
在 GitHub 查看