ciel-ml-and-data-patterns

ciel-ml-and-data-patterns is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 24 tokens per session (434 once invoked), scanned A, original, Apache-2.0.

A set of patterns for PyTorch machine-learning code and PostgreSQL data work, including reproducible training and efficient database queries.

In plain words
What is it for?
It supports device-independent PyTorch code, random-seed setup, validation and checkpointing, PostgreSQL indexes and types, cursor pagination, and row-level security optimization.
Why use it?
It helps avoid common training, tensor-shape, indexing, type, pagination, and data-access mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It supports device-independent PyTorch code, random-seed setup, validation and checkpointing, PostgreSQL indexes and types, cursor pagination, and row-level security optimization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxoesneon/ciel/ciel-ml-and-data-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jxoesneon/Ciel --skill ciel-ml-and-data-patterns
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ciel-ml-and-data-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/ciel-ml-and-data-patterns/github.svg)](https://agentmods.dev/skills/jxoesneon/ciel/ciel-ml-and-data-patterns)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/ciel-ml-and-data-patterns"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/ciel-ml-and-data-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ciel-ml-and-data-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxoesneon/ciel/ciel-ml-and-data-patterns"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/ciel-ml-and-data-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00434
Opus 5.5 $0.00010 $0.00174
Sonnet 5.5 $0.00005 $0.00087
Haiku 4.5 $0.00002 $0.00043

Measured 1mo ago against content hash 49a3b5d956c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ciel-ml-and-data-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ciel-ml-and-data-patterns/SKILL.md · 38 lines

What it actually says

CIEL ADAPTATION: ML & Data (The Intelligence Layer)

This skill manages high-performance data patterns, from deep learning training loops to SQL query optimization.

PyTorch ML Patterns

  1. Device-Agnostic: ALWAYS use device = torch.device(...). Prohibit hardcoded .cuda() calls.
  2. Reproducibility: Set seeds for torch, np, and random in a central set_seed() function.
  3. Shape Integrity: Annotate and verify tensor shapes in the forward() pass comments.
  4. Efficiency: Use optimizer.zero_grad(set_to_none=True) and model.eval() for validation.

Postgres Data patterns

  • Indexing: Equality columns first, then range columns. Use GIN for JSONB and BRIN for time-series.
  • Types: Use bigint for IDs, timestamptz for times, and text for variable strings.
  • Pagination: Use keyset/cursor pagination (WHERE id > $last_id) instead of OFFSET for O(1) performance.
  • Security: Wrap RLS policies in (SELECT auth.uid()) = user_id for optimization.

Memory Management

  • AMP: Use torch.amp.GradScaler for mixed-precision performance.
  • Checkpointing: Save model_state_dict AND optimizer_state_dict to allow resuming training.

Anti-Patterns

  • In-place Mutation: Using x += residual in PyTorch (breaks autograd). Use x = x + residual.
  • Small Inserts: Performing SQL inserts in a loop instead of batching.
  • Select *: Reading every column in SQL (causes unnecessary I/O bloat).
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -13 lines 49a3b5d956c6
  2. 1mo ago First seen · 51 lines · 24 tokens per session scan A 22844ce47f61

Subscribe to this mod's changes

ciel-ml-and-data-patterns is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 24 tokens to every session and 434 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

data-mcp-tools

Use when tools from the jupyter, duckdb, dbt, mlflow, huggingface or postgres MCP servers appear in your tool list, or before reaching for one — what each is good for, what it can damage, and the CLI fallback when it is not connected.

makifbaysal/tasktrooper · 60 tokens

bigquery-ai-ml

Leverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity…

google/adk-python · 131 tokens

mongodb-atlas-stream-processing

Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations, debugging diagnostics, and tier sizing. Supports Kafka, Atlas clusters, S3, HTTPS, and Lambda integrations for streaming data workloads and event processing. NOT for…

fcakyon/claude-codex-settings · 82 tokens

neo4j-document-import-skill

Ingests unstructured and semi-structured documents into Neo4j as a knowledge graph. Use when chunking PDFs, HTML, plain text, or Markdown; extracting entities and relationships from text with an LLM (SimpleKGPipeline, neo4j-graphrag); loading JSON via apoc.load.json; building Document→Chunk→Entity graph structures; or…

neo4j-contrib/neo4j-skills · 187 tokens

neo4j-vector-index-skill

Create and manage Neo4j vector indexes, run vector similarity search (ANN/kNN), store embeddings on nodes or relationships, use SEARCH clause (Neo4j 2026.01+, preferred) or db.index.vector.queryNodes() procedure (deprecated 2026.04, still works on 2025.x), configure HNSW and quantization options, pick similarity…

neo4j-contrib/neo4j-skills · 210 tokens

neo4j-graphrag-skill

Build GraphRAG retrieval pipelines on Neo4j using the neo4j-graphrag Python package (v1.22.0+). Covers retriever selection (VectorRetriever, HybridRetriever, VectorCypherRetriever, HybridCypherRetriever, Text2CypherRetriever, ToolsRetriever), external vector DB retrievers (Weaviate, Pinecone, Qdrant), retrievalquery…

neo4j-contrib/neo4j-skills · 230 tokens