Skip to content

michtio/craftcms-claude-skills / skills/craft-plugins

craft-plugins

Verified

Index and router for plugin-specific Craft CMS 5 guidance — configuration, Twig API, PHP API, migrations, deployment, and pitfalls for the plugins this pack documents. Load whenever a task names a plugin this pack documents, and for passwordless or magic-link auth with no plugin named; read references/<plugin>.md first.

references/sherlock.md

View on GitHub
# Sherlock

Security scanner and monitor by PutYourLightsOn. Scans for vulnerabilities — file permissions, HTTP headers, CMS configuration, encrypted connections, critical updates, Content Security Policy. Supports scheduled scans, IP-based CP/front-end access restriction, monitoring with email alerts, and integrations with Bugsnag/Rollbar/Sentry. Used in 6/6 projects.

`putyourlightson/craft-sherlock` — Lite (free) / Plus ($199) / Pro ($299)

## Documentation

- Docs: https://putyourlightson.com/plugins/sherlock
- GitHub: https://github.com/putyourlightson/craft-sherlock

When unsure about a feature, `WebFetch` the docs page.

## Editions

| Feature | Lite | Plus | Pro |
|---------|------|------|-----|
| Security scans | ✅ | ✅ | ✅ |
| Encrypted connections | ✅ | ✅ | ✅ |
| Critical updates | ✅ | ✅ | ✅ |
| CMS configuration | ✅ | ✅ | ✅ |
| Header protection | — | ✅ | ✅ |
| Content Security Policy | — | ✅ | ✅ |
| Scheduled scans | — | ✅ | ✅ |
| Monitoring (email alerts) | — | — | ✅ |
| CP access restriction | — | — | ✅ |
| Front-end access restriction | — | — | ✅ |
| Basic auth | — | — | ✅ |
| API | — | — | ✅ |
| Integrations | — | — | ✅ |

## Setup

1. Install via Plugin Store or Composer
2. CP → Sherlock → run first security scan
3. Review results and fix flagged issues

## Scheduled Scans

Set up a cron job for automatic scanning:

```bash
# Daily scan at 3 AM
0 3 * * * cd /path/to/project && ddev craft sherlock/scans/run
```

## Config File

```php
// config/sherlock.php
return [
    '*' => [
        // 'standard' or 'high' security level
        'highSecurityLevel' => false,

        // Maximum number of scan records to keep
        'maxScans' => 50,
    ],
    'production' => [
        'highSecurityLevel' => true,
    ],
];
```

Copy the config template from the plugin's `config.php` for all available settings.

## What It Scans

- **File permissions** — writable directories, exposed config files
- **HTTP headers** — X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy
- **CORS** — cross-origin resource sharing configuration
- **CSRF** — cross-site request forgery protection
- **Encrypted connections** — HTTPS enforcement on front-end and CP
- **CMS config** — `devMode`, `allowAdminChanges`, `enableCsrfProtection`, etc.
- **Critical updates** — CMS version, plugin versions, PHP version
- **Plugin vulnerabilities** — checks against PutYourLightsOn's vulnerability feed

## Common Pitfalls

- Running in `high` security level on development — some checks only make sense in production. Use environment-based config.
- Ignoring header warnings — HTTP security headers are low-effort, high-impact fixes. Don't dismiss them.
- Not scheduling scans — running manually is better than nothing, but automated daily/weekly scans catch regressions.
- Using Plus when Pro is needed — if you need IP restriction or monitoring, you need Pro edition.

## Pair With

- **Knock Knock** — Sherlock secures the production site, Knock Knock password-protects staging
- **Password Policy** — Sherlock checks CMS config, Password Policy enforces strong user passwords
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall