跳到正文
cccskills
免费在 GitHub 公开

laravel-feeds-target-outputs

Implement independent Laravel Feeds outputs for partners, stores, locales, or other business keys with target-specific queries and collision-free filenames.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md2.6 KB
  • examples/LOCALE-FEED.md6.0 KB
  • references/TARGET-CONTRACT.md5.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Implement business-specific output files

Build one registered feed with a separate filtered output for each business key. Use this skill when implementing target discovery, lookup, query filtering, and filenames. Produce a complete targeted feed, selection examples, and checks that target datasets and paths stay independent.

Workflow

  1. Identify the registration, business key, selection conditions, output contract, and expected target count. Choose targets for business variants, perFile() for count-based parts, or both when each variant needs parts.
  2. Inspect the existing feed and callers. Keep one registration for the class. Implement HasFeedTargets with InteractsWithFeedTargets; keep targets() lazy and make findTarget() resolve explicit keys directly.
  3. Design stable non-empty keys and small serializable parameter snapshots. Keys are visible in output and errors and are not sanitized. Use controlled path-safe keys, identifiers instead of models, and no secrets.
  4. Use target()->parameters to filter builder() and a deterministic distinct filename() for every target. Return a lazy Eloquent builder. Resolve only required relationships and fields.
  5. Exercise full enumeration, selected-key lookup, unknown keys, clone independence, dataset filtering, and filename uniqueness. For parts, verify suffixes and total counts independently per target.
  6. Show the registration slug and repeatable --target commands. For direct service calls, resolve a target and pass forTarget($target); GeneratorService never enumerates targets.

Use the target contract for execution and failure rules. Use the complete locale example for code, invocation, and a small assertion check.

Artifact ownership and config policy

Read current feed definitions, model schema, registrations, application storage/config, and call sites. Write only requested target implementation and relevant application tests or reproducible registration changes. Do not create one registration per target. Generation and queue dispatch change application state; perform them only within the requested scope. Retain the existing format, disk, and unrelated query rules unless the output contract requires a change. Do not expose secrets in keys, snapshots, logs, or filenames. This skill does not write AI Factory context or config.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

aif

免费

Set up agent context for a project. Analyzes tech stack, installs relevant skills from skills.sh, generates custom skills, and configures MCP servers. Use when starting new project, setting up AI context, or asking "set up project", "configure AI", "what skills do I need".

中文简介正在准备中。当前显示原文说明。

TheDragonCode/laravel-feeds362026年10月23日 更新

Generate architecture guidelines for the project. Analyzes tech stack from DESCRIPTION.md, recommends an architecture pattern, and creates .ai-factory/ARCHITECTURE.md. Use when setting up project architecture, asking "which architecture", or after $aif setup.

中文简介正在准备中。当前显示原文说明。

TheDragonCode/laravel-feeds362026年10月23日 更新

Archive completed plans and roadmap milestones. Moves finished plans to the archive directory and optionally trims closed milestones from ROADMAP.md. Use when user says "archive plans", "clean up plans", "archive completed", or "trim roadmap".

中文简介正在准备中。当前显示原文说明。

TheDragonCode/laravel-feeds362026年10月23日 更新

Code quality guidelines and best practices for writing clean, maintainable code. Covers naming, structure, error handling, testing, and code review standards. Use when writing code, reviewing, refactoring, or asking "how should I name this", "best practice for", "clean code".

中文简介正在准备中。当前显示原文说明。

TheDragonCode/laravel-feeds362026年10月23日 更新

Analyze project and generate or enhance build automation file (Makefile, Taskfile.yml, Justfile, Magefile.go). If a build file already exists, improves it by adding missing targets and best practices. Use when user says "generate makefile", "create taskfile", "add justfile", "setup mage", or "build automation".

中文简介正在准备中。当前显示原文说明。

TheDragonCode/laravel-feeds362026年10月23日 更新

aif-ci

免费

Generate CI/CD pipeline (GitHub Actions / GitLab CI) with linting, static analysis, tests, security. Use when user says "ci", "setup ci", "github actions", "gitlab ci", "pipeline".

中文简介正在准备中。当前显示原文说明。

TheDragonCode/laravel-feeds362026年10月23日 更新

查看 TheDragonCode 的全部技能

报告此技能的问题