Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
7
Always restate the user task for yourself, outline the intended steps, then execute systematically. This keeps chronology clear and avoids missed requirements.
Sign in to like and favorite skills
Always restate the user task for yourself, outline the intended steps, then execute systematically. This keeps chronology clear and avoids missed requirements.
Use the local opam switch stored in
_opam/. Run eval $(opam env --set-switch) (or opam switch create .) in each shell so Dune and linters resolve dependencies consistently.
psql and curl must be available on the PATH (used by migration scripts and the embedding worker).
Keep OCaml, Dune, ocamlformat, and tooling versions aligned with
chessmate.opam before introducing new dependencies.
docs/*.mld: odoc pages for architecture/CLI/services; keep them updated alongside Markdown docs.
lib/chess/: PGN parsing, metadata helpers, and PGN→FEN engine.lib/storage/, lib/embedding/, lib/query/, lib/cli/: persistence, embeddings, planning, and shared CLI code.bin/: CLI entry points (chessmate, plus legacy pgn_to_fen).services/: long-running executables (embedding worker, API prototype).test/fixtures/: canonical PGN fixtures used by tests.opam install . --deps-only --with-testdune builddune runtest (use --no-buffer to stream PGN/FEN logs)dune exec chessmate -- ingest …, dune exec chessmate -- query … (set CHESSMATE_API_URL when targeting a non-default port)chessmate fen <game.pgn> for quick FEN verification.open! Base at the top of .ml files, explicit .mli signatures.Or_error.t for recoverable failures.lib/chess/; isolate side effects (IO, DB, network) in CLI/services.List.map, Option.bind), and avoid partial functions.dune fmt (ocamlformat profile conventional, version 0.27.0) before staging changes; include dune build && dune runtest output in PR descriptions.test/ and register them via Alcotest.run.test/dune when new fixtures or libraries are required.test/fixtures/) and print diagnostics only when helpful (--no-buffer).feat: add pgn fen helper).