Skip to content
Back to skills

Plandillo Patterns

ASecurity

Use when working in the Plandillo repo, especially before writing a commit message, adding a test, or editing handler, service, store or web files: conventions measured from git history

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsgosqltestinggitapidatabasefrontend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add huntly-digital/plandillo --skill plandillo-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plandillo Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plandillo Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huntly-digital-plandillo-patterns/badge)](https://www.skillsdirectory.com/skills/huntly-digital-plandillo-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plandillo-patterns
description: "Use when working in the Plandillo repo, especially before writing a commit message, adding a test, or editing handler, service, store or web files: conventions measured from git history"
metadata:
  internal: "true"
  version: "1.0.0"
  source: local-git-analysis
  analyzed_commits: "51"
---

# Plandillo Patterns

Measured on 51 commits. Commands, layout and rules are in `AGENTS.md`; this skill is what the history shows people actually do.

## Commit Conventions

- 45 of 51 subjects (88%) follow `type(scope): lowercase subject`. The 6 that don't are the first commits, before the convention settled.
- Types seen: `fix` (25), `feat` (15), `docs` (2), `test`, `refactor`, `chore` (1 each). Scopes seen: `web` (16), `selfhost` (14), `auth` (9), `mcp` (1).
- Subjects average 54 characters (max 99), no trailing period. They say the user-visible effect: `fix(web): leave /invite/<token> when already signed in`, `feat(web): revoke a pending invite`, `fix(web): send no Referer header`.
- A `fix(web)` commit usually touches one file (8 of 11 sampled). Features may span several.
- No attribution lines in commit messages or PR descriptions.

## Code Architecture

- `cmd/plandillo` wires; `internal/service` owns rules and validation; `internal/store` owns SQL; `internal/httpapi` and `internal/mcpserver` are thin adapters that call only `service`.
- Selfhost mode adds `internal/auth` (users, sessions) and `internal/selfhost` (one database per profile). The two together are the most edited area: `selfhost/handler.go` (10 commits) and `auth/db.go` (7).
- Frontend: one screen per file in `web/src` (`Board.tsx`, `Today.tsx`, `Mcp.tsx`, ...), shared pieces in `ui.tsx`, API calls and types in `api.ts` (8 commits, the most edited web file).

## Workflows

| Change | Files that move together |
|---|---|
| Selfhost or auth behaviour | `internal/selfhost/handler.go` + `handler_test.go`; `internal/auth/db.go` + `db_test.go` (every commit so far) |
| New or changed MCP tool | `internal/service/mcp.go` (`MCPTools`), `internal/mcpserver/mcpserver.go`, README tool table, `skills/plandillo-reference/SKILL.md` |
| Skill text or hook JSON | `skills/plandillo*/SKILL.md`, `web/src/McpAgent.tsx` (hook JSON, skill list), `web/src/messages.ts` for new UI strings |
| New UI string | `tr('Русский текст')` in the component and the en/uk pair in `web/src/messages.ts` |
| New REST endpoint | `internal/httpapi/httpapi.go`, the matching `service` function, a case in `httpapi_test.go`, the README REST table, `web/src/api.ts` |

## Testing Patterns

- Go tests sit next to the code (`*_test.go`) and change in the same commit as the code. `internal/httpapi/httpapi_test.go` builds a real server with `httptest` and a temporary SQLite file; `newEnv(t)` and `connect(t, e)` (an MCP client session) are the helpers to reuse.
- Tests open a local port, so a sandbox that forbids binding fails them with `bind: operation not permitted`.
- The frontend has no test runner. `make typecheck` and `make knip` are its gate; `make check` runs everything.
- A skill change is covered by `TestPlandilloSkillIsServedAndSentAsInstructions` (each skill is served, the `plandillo` body stays under 2048 bytes).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.