Git commits

From romshark/datapages · View interactive version

Git commits is an AI agent skill from the GitHub repository romshark/datapages. Write Datapages commit messages, including the breaking-change marker and the BREAKING block. Use when writing a commit message or a changelog entry.

How to use this skill

Skill file

```

feat: Add funcFoo <- keep, this is the change

docs: Add docs for funcFoo <- drop

test: Add tests for funcFoo <- drop

refactor: Use funcFoo everywhere <- drop

test: Add benchmark to test funcFoo against funcBar <- drop

```

Bad:

feat: added caching to the generator and updated some files

This commit adds a cache to the generator so that it is faster. I changed
internal/gen/gen.go, internal/gen/cache.go and internal/cmd/gen.go to add the
cache and wire it up. The cache stores parsed packages in a map keyed by import
path. Overall this makes the generator faster and cleaner.

Co-Authored-By: Some Tool <tool@example.com>

Good:

perf: Cache parsed packages in the generator

Every `datapages gen` run reparsed all dependencies. The cache keys on
import path and file mod time, which is safe because the loader already
rejects stale build artifacts.

Watch mode still reparses on every event: invalidation for edits inside
the module isn't implemented yet.

40ms -> 12ms on example/classifieds.

Good, breaking change:

refactor!: Move HTTP core to runtime packages

BREAKING:
- `datapages.NewCore` -> `runtime/httpserve.NewCore`.
- `datapages.CoreConfig` -> `runtime/httpserve.Config`.
- Generated code: run `datapages gen`, no hand edits needed.
- Hand-written callers: import `github.com/romshark/datapages/runtime/httpserve`
  and update the 2 names above.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.