hope-agent / src
AGENTS.md1.7k starsChanged 7 months agoMITView on GitHub
适用于 src/**,修改前读取;根规范见 ../AGENTS.md。组件入口与已登记例外以 UI 交互规范 为准。 操作提供即时反馈(乐观更新 / 加载状态);动效以 60fps 为目标,优先 CSS transform / opacity。 详见 ../docs/architecture/core/ui-interaction-system.md(组件路由表 / 表面 token / 焦点协议 / 登记的例外)。
Trending
More talk lately.thin dataabout the whole repository
Who's talking about shiwenwen/hope-agent
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: 0.61.0 → 0.62.0”GitHub · Oct 5, 2026
- JDeun/SchemaRouter“External follow-up queue: HYSET, pi-jev, and hope-agent replies”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: 0.53.0 → 0.61.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: init at 0.53.0”GitHub · Oct 2, 2026
- AppImage/appimage.github.io“Add Hope_Agent”GitHub · Sep 29, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- email-draftSkill
- feishuSkill
- ha-browserSkill
- ha-code-reviewSkill
- ha-coding-commonSkill
- ha-coding-planSkill
- ha-data-analyticsSkill
- ha-data-storesSkill
- ha-debugSkill
- ha-find-skillsSkill
- ha-knowledgeSkill
- ha-logsSkill
- ha-mac-controlSkill
- ha-manualSkill
- ha-multi-agent-codingSkill
- ha-pet-importSkill
- ha-self-diagnosisSkill
- ha-self-updateSkill
- ha-settingsSkill
- ha-skill-creatorSkill
- ha-skill-installerSkill
- ha-test-strategySkill
- ha-verifySkill
- ha-workflow-scriptSkill
- meeting-notesSkill
- mermaid-diagramSkill
- office-docxSkill
- office-pptxSkill
- office-xlsxSkill
- status-reportSkill
The file
Files
前端 / UI 编码规范
适用于 src/**,修改前读取;根规范见 ../AGENTS.md。组件入口与已登记例外以 UI 交互规范 为准。
操作提供即时反馈(乐观更新 / 加载状态);动效以 60fps 为目标,优先 CSS transform / opacity。
编码规范
- 函数式组件 + hooks,别名
@/→src/。业务表单复用src/components/ui/(shadcn/ui),不绕过公共控件另造原生表单;公共控件内部可封装原生元素。 - 静态视觉样式用 Tailwind 与共享设计变量;不在业务组件另建视觉体系。浮层坐标、运行时尺寸可用动态
style;终端等第三方组件按已登记例外使用作用域 CSS。 - 动效优先复用 shadcn/ui / Radix / Tailwind 内置 utility,确认不够用才手写
- 悬浮提示统一走 tooltip:图标按钮用
IconTip,文本 / 动态提示用data-ha-title-tip的共享委托桥,控件另设可访问名称。Markdown 链接也不使用原生悬停title,不逐链接增加TooltipTrigger;iframe 的无障碍title保留。 - 保存按钮统一三态(
saving→saved绿 2s→failed红 2s);Think / Tool 流式块设max-height内滚 + 自动滚底 + 显示耗时 - 沿用现有流式渲染与组件状态边界;仅在稳定引用或性能证据需要时增加记忆化,不批量添加
memo/useMemo/useCallback。
UI 表单控件与焦点
详见 ../docs/architecture/core/ui-interaction-system.md(组件路由表 / 表面 token / 焦点协议 / 登记的例外)。
- 表单控件只走公共入口(
SearchInput/Input/Textarea/ RadixSelect/ModelSelector/ModelChainEditor/NumberInput/DeferredNumberInput/RadioPills/TogglePills),禁止裸<select>、裸<input type="number">、Input type="number"、NativeSelect。 - 表面与焦点单一来源:复用
FLAT_CONTROL_SURFACE_CLASS(只许覆盖尺寸 / 布局 / 排版);组件不得自加focus:ring-*/focus:border-*,焦点服从src/index.css全局协议。 - 悬停 / 选中 / 展开只加深背景,不动 border / ring / shadow;拖拽手柄等按已登记例外处理。
interaction-border-audit.test.ts覆盖悬停边框及部分选中 / 展开样式,不替代交互验证。 - 新增例外必须登记到
ui-interaction-system.md「登记的例外」,禁止用局部样式静默分叉。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

