Rails启动器

claude-md-elixir-starter — Rails 启动器模板

作者 sublimecoder

面向 Elixir / Phoenix 代码库的 CLAUDE.md 起始文件,用于在 Claude Code 会话中固定项目约定,减少把 Ruby 习惯带入 Elixir 的写法。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-13查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

提供可直接放入 Elixir 项目根目录的 CLAUDE.md 模板

02

覆盖 umbrella 布局、context 边界与 OTP 监督结构

03

规定 GenServer、进程与状态归属的写法规则

04

锁定 Ecto 的 changeset / context / schema 分离

05

列出 Rails 式写法、过早 actor 模型、滥用 try/rescue 等反模式

06

给出 mix 任务清单,减少模型编造命令

模板详细介绍

这是一个可直接放入仓库根目录的 CLAUDE.md 模板,目标代码库是 Elixir 生态,包括 Phoenix 应用、umbrella 项目与 OTP 服务。Claude Code 每次运行会读取该文件,用它约束建议内容。

模板要求填写应用名、是否使用 Phoenix、umbrella 还是单应用、主数据库与部署目标等方括号字段,并删除不适用的小节。内容覆盖 umbrella 布局、context 边界、OTP 监督结构、GenServer 与进程规则、状态归属、Ecto 的 changeset / context / schema 分层,以及需要避免的反模式(Rails 式写法、过早引入 actor 模型、滥用 try/rescue),并列出 mix 任务以减少模型自行编造命令。

作者说明 Elixir 训练数据少于 Go 或 Python,模型容易把 Elixir 与 Ruby、Erlang 混淆,因此约定文件在 Elixir 项目中作用更明显。该仓库为 MIT 许可,是 Vault 中的 Elixir 专用起始文件;Vault 本身为付费内容,与本免费模板分开。

Rails启动器

适合你的项目吗?

适用场景

  • 在 Phoenix 应用中让 Claude Code 遵循既有 context 与 schema 分层
  • 在 umbrella 项目中说明各应用的职责边界与监督树结构
  • 在 OTP 服务中约束 GenServer 与进程的使用范围
  • 在已有 Elixir 代码库中统一团队与 AI 助手的编码约定

适合人群

  • 使用 Claude Code 的 Elixir / Phoenix 开发团队
  • 维护 umbrella 项目或 OTP 服务的工程师
  • 希望减少 AI 生成 Ruby 风格 Elixir 代码的开发者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    将 CLAUDE.md 复制到 Elixir 项目根目录

  2. 2

    填写方括号字段:应用名、是否 Phoenix、umbrella 或单应用、主数据库、部署目标

  3. 3

    删除不适用的小节,并按项目补充缺失内容

  4. 4

    提交到仓库,使 Claude Code 每次会话都能读取

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • Vault(含 Go、Elixir、AI agent 三份 CLAUDE.md 起始文件、.cursorrules、50 条提示词与 Notion 蓝图)为付费产品,$39 创始版限前 50 名,之后 $49;本仓库仅提供其中 Elixir 专用的免费起始文件。
  • 本仓库只包含 Elixir 版 CLAUDE.md 起始文件;README 中列出的其他起始文件、.cursorrules、提示词与 Notion 蓝图属于付费 Vault,不在本免费仓库范围内。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

**$39 founders edition** — first 50 buyers, then $49 · 7-day refund · lifetime updates · no app, no login.

README 原文

This is the **Elixir-only** starter. The [Senior Engineer's AI Prompt Vault](https://sublimecoding.com/vault) includes:

README 原文
https://github.com/sublimecoder/claude-md-elixir-starter/blob/main/LICENSEhttps://github.com/sublimecoder/claude-md-elixir-starter/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 80 / 100
技术栈
Rails
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-06-25
截图检查日期
2026-10-13

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Rails。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-13

查看当时使用的来源资料

SHA-256: 25f14447c5b0d880d0e1f9eabd8ed277ca3258cd815ea2d41713520f4224e5a8

2026-10-13T05:07:46.180Z

来源文件 / 仓库
# CLAUDE.md Starter — Elixir / Phoenix

A drop-in `CLAUDE.md` for Elixir codebases — Phoenix apps, umbrella projects, OTP services — so [Claude Code](https://claude.com/claude-code) stops writing Ruby in Elixir syntax and actually respects your supervision tree, contexts, and let-it-crash conventions.

By [Jared Smith](https://sublimecoding.com) — staff engineer, Director of Information Security at Lavender. Production Elixir at AAMP Global (40K+ telematics devices streaming). 13+ years shipping Go, Elixir, and Ruby.

## What this is

A real, opinionated `CLAUDE.md` that:

- Tells Claude Code your umbrella layout, context boundaries, and OTP supervision shape
- Sets the rules for GenServers, processes, and where state actually belongs
- Locks in the Ecto changeset / context / schema separation
- Lists the anti-patterns (Rails-isms, premature actor model, `try`/`rescue` overuse) you don't want suggested
- Gives Claude the mix tasks so it stops inventing them

This file goes at the root of your repo. Claude Code reads it on every run and uses it to ground its suggestions.

## Quick start

1. Copy [`CLAUDE.md`](./CLAUDE.md) into the root of your Elixir project.
2. Fill in the `[bracketed]` fields — app name, Phoenix vs not, umbrella vs single-app, primary database, deployment target.
3. Delete sections that don't apply. Add ones that do.
4. Commit it. Claude Code now starts every session with your conventions in context.

## Why CLAUDE.md matters more in Elixir

Elixir is the language Claude Code hallucinates hardest on. It has less training data than Go or Python, and the model frequently confuses Elixir with Ruby or Erlang. Without conventions in context, you get:

- GenServers used where a plain function would do
- `try`/`rescue` blocks that should be pattern matches
- Mutated state that doesn't exist
- "Service objects" that should be contexts

A `CLAUDE.md` cuts most of this on the first message.

## What's in the Vault

This is the **Elixir-only** starter. The [Senior Engineer's AI Prompt Vault](https://sublimecoding.com/vault) includes:

- 3 `CLAUDE.md` starters: **Go services**, **Elixir umbrellas**, **AI agent projects**
- 5 `.cursorrules` files (one per category — code review, debugging, refactoring, system design, docs)
- 50 production-tested prompts for Claude Code and Cursor
- Notion blueprint with category, tool, and usage views

**$39 founders edition** — first 50 buyers, then $49 · 7-day refund · lifetime updates · no app, no login.

→ **[Get the Vault](https://sublimecoding.com/vault)**

## Related

- [Go CLAUDE.md starter](https://github.com/sublimecoder/claude-md-go-starter)
- [AI agents CLAUDE.md starter](https://github.com/sublimecoder/claude-md-ai-agents-starter)
- [5 free sample prompts](https://github.com/sublimecoder/sublimecoding/tree/main/prompts)
- [FAQ](https://github.com/sublimecoder/sublimecoding/blob/main/FAQ.md)
- [How I Prompt Claude as a Staff Engineer (50 Prompts I Actually Use)](https://sublimecoding.com/blog/staff-engineer-claude-prompts)
- [sublimecoding.com](https://sublimecoding.com)

## License

MIT. Use it, fork it, ship it.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。