Rails文档启动器

agentic_rails_context_starter — Rails 文档模板

作者 JarrydAdaens

为 AI 辅助的 Rails 项目生成持久化上下文结构的模板仓库,包含身份、命令、约束与条件读取规则。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

提供 core、planned-delivery、high-consequence 三种显式配置档,按需生成不同粒度的上下文

02

生成器要求显式指定配置档和宿主,不会静默安装技能、插件、规则或角色

03

命令以数据形式记录,生成过程不执行命令,未提供命令时明确说明尚未采用

04

支持 generic、codex、claude、cursor 四种宿主入口,未列出的宿主不受支持

05

内置安全重跑与更新机制,冲突时拒绝写入,不执行提交、推送或部署

06

使用 Python 3.10+,无第三方依赖,附带回归检查与 fresh Core 测试夹具

模板详细介绍

该仓库是一个面向 AI 辅助开发的上下文启动器,用于在 Rails 项目中生成一份小而明确的上下文结构,涵盖项目身份、命令、约束和条件读取规则。生成器提供 core、planned-delivery、high-consequence 三种配置档:core 生成 AGENTS.md、项目 README、简短的目的/设计说明、基线清单和所选宿主包装;planned-delivery 在 core 基础上增加包含目标、验收、依赖和连续性的当前计划;high-consequence 再增加独立审查范围、恢复流程和必需检查。生成过程要求显式指定配置档和宿主,不会静默安装技能、插件、规则、记忆、顾问或角色,也不复制仓库中可选的里程碑、待办或测试夹具参考材料。

生成器基于 Python 3.10 或更新版本,无第三方依赖。使用前需解析 --name、--repo、--owner、--purpose,未解析的身份占位符和模板标记会被拒绝。命令以数据形式记录,生成过程不会执行它们;未提供命令时,说明中会明确表示尚未采用任何命令。支持 generic、codex、claude、cursor 四种宿主,未列出的宿主不受支持。

仓库还包含安全重跑与更新机制:生成仅在目标文件均不存在时向非空目录添加内容,任何冲突都会在写入前拒绝整个操作;更新使用先前框架基线、当前源渲染结果和当前项目内容进行合并,重叠、并发创建或删除会拒绝所有写入。更新不会修改产品版本源,也不执行提交、推送或部署。该机制不是跨整棵树的崩溃安全事务,采用或重要更新前应自行快照。对于没有基线的现有项目,文档明确要求不要伪造基线或直接覆盖,而应生成到独立审查目录后选择性采用。

Rails文档启动器

适合你的项目吗?

适用场景

  • 为新的 Rails 项目快速建立 AI 可读的上下文结构,明确身份、命令与约束
  • 在已有项目中生成独立审查目录,对比后选择性采用路由与策略变更
  • 为高后果项目生成包含独立审查范围、恢复流程和必需检查的交付计划
  • 通过 .agentic-rails.json 记录项目身份、组件、输入和内容哈希,支持可复现的更新

适合人群

  • 使用 AI 辅助开发并需要持久化项目上下文的 Rails 团队
  • 希望以显式配置档和宿主控制生成内容、避免自动安装额外组件的开发者
  • 需要在不覆盖现有项目的前提下评估并选择性采用上下文结构的维护者

上手与定制指南

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

  1. 1

    需要 Python 3.10 或更新版本,无第三方依赖

  2. 2

    生成前必须解析 --name、--repo、--owner、--purpose,未解析的占位符会被拒绝

  3. 3

    使用 --dry-run 预览生成结果,确认后再移除该参数写入

  4. 4

    更新前建议对项目做快照,该机制不是跨整棵树的崩溃安全事务

  5. 5

    没有基线的现有项目不要直接覆盖,应生成到独立目录后选择性采用

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

  • 允许免费使用、修改、商用和分发;分发时需随附 Apache-2.0 许可证。
  • 修改过的文件需显著标明改动,并保留相关版权、专利、商标及归属声明。
  • 若原项目附有 NOTICE 文件,分发衍生作品时需保留其中适用的归属声明。
  • 许可包含适用的贡献者专利授权;发起许可所述专利诉讼会终止该专利授权,且不授予商标使用权。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 Apache-2.0 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 使用生成器需要 Python 3.10 或更新版本;无第三方依赖。
  • 仅支持 generic、codex、claude、cursor 四种宿主,未列出的宿主不受支持。
  • 生成仅可在目标文件均不存在时向非空目录添加内容;任何冲突都会在写入前拒绝整个操作。
  • 更改身份、配置档、宿主或生成输入会被拒绝,需另行审查迁移。
  • 该机制不是跨整棵树的崩溃安全事务,采用或重要更新前应自行快照。
  • 生成与更新过程不执行提交、推送或部署。
  • 对无基线的现有项目,不得伪造基线或直接覆盖。
  • 自动更新需要可信的生成器清单。
查看原文依据

no-charge, royalty-free, irrevocable copyright license

许可证原文

Python 3.10 or newer is sufficient; no third-party dependency is required.

README 原文

Unlisted hosts are unsupported by this generator.

README 原文

Generation may add context to a nonempty directory only when none of its target files already exists. Any collision refuses the entire operation before writing.

README 原文

Changed identity, profile, host, or generation inputs are refused; use a separately reviewed migration.

README 原文

This is not a crash-safe transaction across the whole tree: take a project snapshot before adoption or an important update.

README 原文

No commit, push, or deployment is performed.

README 原文

Do not fabricate a baseline from their current files or copy the starter over them.

README 原文

Automatic updates require a trustworthy generator manifest.

README 原文
https://github.com/JarrydAdaens/agentic_rails_context_starter/blob/main/LICENSEhttps://github.com/JarrydAdaens/agentic_rails_context_starter/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: c775f27a8254e895c05a3c9b363b4b2b8d58d303ae2e75440c18ea08423fb6dc

2026-10-11T07:00:56.455Z

来源文件 / 仓库
---
name: readme
description: Profiles, deterministic project generation, checks, and selective starter migration.
metadata:
  version: "4.0"
  agentic_rails_source_version: "4.0"
  owner: "Jarryd Adaens"
  repo: "agentic_rails_context_starter"
---
# Agentic Rails context starter

Create a small project context with explicit identity, commands, constraints, and
conditional reading. Core is the recommended starting profile. Generation requires
an explicit profile and host so automation never guesses the destination's policy.
The canonical framework overview is the [tooling README](../agentic_rails_tooling/AGENTIC_RAILS_README.MD).

| Profile | Generated content |
| --- | --- |
| `core` | `AGENTS.md`, project `README.md`, a short purpose/design note, baseline manifest, selected host wrapper. |
| `planned-delivery` | Core plus a concrete current plan with objective, acceptance, dependencies, and continuity. |
| `high-consequence` | Planned delivery plus explicit independent review scope, recovery procedure, and required checks. |

No profile silently installs skills, plugins, rules, memory, advisors, or personas.
Core has no required milestone, plan, numerical score, or per-story commit.
The optional milestone/backlog/harness reference material in this repository is
not copied by the generator. Adopt it selectively when actual work needs it.

## Generate

Python 3.10 or newer is sufficient; no third-party dependency is required.
From this starter's root, preview a fresh Core project:

```powershell
python scripts/starter.py generate --destination "D:/Code Projects/example" --profile core --host codex --name "Example" --repo example --owner "Project Owner" --purpose "A local tool that summarizes task status." --check "python -m unittest discover -s tests -v" --constraint "Keep task data on this machine." --dry-run
```

Remove `--dry-run` to write the reviewed selection. Supply only commands the actual
project uses. Repeat `--setup`, `--build`, `--check`, `--run`, and `--constraint` as needed.
Commands are recorded as data and are never executed by generation. Without a command,
the instructions explicitly say that none has been adopted; no success is fabricated.
Resolve `--name`, `--repo`, `--owner`, and `--purpose` before generation. Unresolved
identity placeholders and template tokens are rejected.

Repeat `--stack-pack` to declare specific pack identifiers (for example `wpf`, `qt`,
or `unreal`). The manifest and instructions record this explicit selection; the starter
does not copy rule bodies, install packs, or assert activation. Leave it empty until the
actual stack is known. Tooling owns pack contents and host-specific activation.

Delivery profiles additionally require `--objective` and at least one `--acceptance`.
Repeat `--dependency` for real dependencies. High consequence also requires
`--review-scope`, `--recovery`, and at least one `--check`. These become the current
plan's concrete controls; a human or supported independent reviewer may fulfill review.

| Host | Instruction entry point | Validation status |
| --- | --- | --- |
| `generic` | `AGENTS.md`; load using the host's project-instruction mechanism. | Generated structure tested. |
| `codex` | `AGENTS.md`. | Generated structure tested; fresh-session activation belongs to rollout. |
| `claude` | `CLAUDE.md` imports `AGENTS.md`. | Import structure tested; runtime activation untested here. |
| `cursor` | `.cursor/rules/project.mdc`, always applied, points to `AGENTS.md`. | Rule structure tested; runtime activation untested here. |

Unlisted hosts are unsupported by this generator. Host choice does not infer a stack.
WPF needs evidence beyond XAML; Qt and Unreal need distinct C++ stack selections.

## Safe reruns and updates

Generation may add context to a nonempty directory only when none of its target files
already exists. Any collision refuses the entire operation before writing. Unrelated
files remain intact. An identical rerun with the recorded inputs performs no writes,
including when project content or source templates have changed. Changed identity,
profile, host, or generation inputs are refused; use a separately reviewed migration.

The schema-versioned `.agentic-rails.json` records project identity, selected components,
inputs, source Git revision, source-content hash, rendered-content hash, and the exact
framework baseline plus SHA-256 for each generated file. A Git revision alone does not
describe uncommitted templates; content hashes disambiguate them. There is no timestamp,
absolute destination, or random identity in the output. Equivalent source and inputs
produce identical files in different destinations.

```powershell
python scripts/starter.py update --destination "D:/Code Projects/example" --dry-run
python scripts/starter.py update --destination "D:/Code Projects/example"
```

Update uses the previous framework baseline, current source rendered with recorded
inputs, and current project content. Disjoint line changes merge while project edits
remain outside the new framework baseline. Overlap, concurrent creation, or deletion
against a changed source refuses all writes with a diagnostic. Matching changes are
accepted. A project deletion remains deleted when source is unchanged. Retired source
files and historical paths are preserved. Linked destination paths and malformed or
tampered baselines are refused. Updates never modify product version sources.

Dry runs report exact affected paths and actions without creating directories. Normal
writes recheck file snapshots and replace files atomically; ordinary I/O failures roll
back applied file content. This is not a crash-safe transaction across the whole tree:
take a project snapshot before adoption or an important update. Empty directories may
remain after an I/O failure. No commit, push, or deployment is performed.

## Existing projects without a baseline

Do not fabricate a baseline from their current files or copy the starter over them.
Generate the desired profile into a separate review directory, compare it with the
project, and explicitly adopt only useful routing and policy changes. Keep project
identity, architecture, commands, historical plans, version sources, and published
versions intact. Only record ownership for content whose old baseline can be proven.
Automatic updates require a trustworthy generator manifest. Cross-project migration
is selective and never a bulk rewrite.

## Checks and fixture

Run `python scripts/check-starter.py` for all regression checks and instruction word
counts, or `python -m unittest discover -s tests -v`. Counts include mandatory host
imports once. The 400-800-word target is a review warning; necessary project constraints
are preserved. Global instructions and tool/skill catalogs are separate measurements.

The [fresh Core fixture](tests/fixtures/fresh-core/README.md) includes a working addition
feature and a regression check. It demonstrates ordinary work without a milestone or
delivery plan. Generation/update checks cover conflicts, nonempty targets, repeated
runs, identity resolution, ownership, paths, newline handling, and interruption hazards.
Use [AGENTS.md](AGENTS.md) for contributor routing and
[context/versioning-policy.md](context/versioning-policy.md) only if adopting that optional product policy.
反馈内容错误

看看同类模板

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