wayfinder-conventions

仓库创建 2026年7月4日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

为特定项目提供一致的路由风格指导。

这个 Skill 做什么

项目级路由约定,偏好 actions 而非 routes。

项目里约定优先用 actions 而不是 routes 来做路由、链接和表单提交,目的是统一前端调用方式。做导航、生成链接或决定路由模式时就按这套约定走,能减少团队内风格差异和冲突。它在 Laravel Wayfinder 的基础上把项目偏好写清楚,方便开发时快速做出一致的选择。

▸ 展开 SKILL.md 英文原文

Project routing conventions and patterns. Complements the Laravel Wayfinder skill with project preferences for actions over routes.

开发编程路由约定项目规范Laravel通用
0
Stars
0
Forks
23
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ceilidhboy/skills/master/skills/wayfinder-conventions/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ceilidhboy/skills/master/skills/wayfinder-conventions/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Wayfinder Conventions

## When to Activate This Skill

Activate this skill alongside the `wayfinder-development` skill whenever:
- Working with routing in frontend components
- Creating links, navigation, or form submissions
- Importing from `@/actions/` or `@/routes/`
- Making decisions about which routing pattern to use

## Project Preference: Actions Over Routes

**In this project, strongly prefer using actions (invokable controllers) over named routes whenever possible.**

### Why Actions Are Better for This Project

- **Type Safety**: Invokable controllers provide better IDE support and type checking
- **Discoverability**: Actions are tied to specific controller classes, making them e
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有