Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

goos-adonis古斯阿多尼斯

Agent Skill

goos-adonis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

267

周安装

11

GitHub Stars

1

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:goos-adonis(古斯阿多尼斯)
来源仓库:https://github.com/muco-rolle/skills
仓库路径:skills/goos-adonis
安装命令:
npx skills add https://github.com/muco-rolle/skills --skill goos-adonis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/muco-rolle/skills --skill goos-adonis

简介

用于基于 AdonisJS 框架开发或维护 TypeScript 应用。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中处理 Node.js 后端项目时使用。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加技能。
  • 需确认是否会执行 npm 命令或修改 package.json。
  • 建议参考原始 README 了解项目结构与启动方式。

SKILL.md

GOOS-Style TDD for AdonisJS v7

Philosophy

Core principle: Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't.

Good tests are integration-style: they exercise real code paths through public APIs. They describe *what* the system does, not *how* it does it. A good test reads like a specification — "authenticated user can create a post" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.

Bad tests are coupled to implementation. They mock internal collaborators, test private methods, or verify through external means (like querying the database directly instead of using the API). The warning sign: your test breaks when you refactor, but behavior hasn't changed.

Develop from inputs to outputs: Work outside-in — start from the external event (HTTP request, browser action) and let each test drive you inward through the layers. The acceptance test defines the entry point; inner-loop tests discover the services and collaborators needed to fulfill it. Don't start from the database schema or model layer and build outward.

See tests.md for examples and mocking.md for mocking guidelines.

Anti-Pattern: Horizontal Slices

DO NOT write all tests first, then all implementation. This is "horizontal slicing" — treating RED as "write all tests" and GREEN as "write all code."

WRONG (horizontal):
  RED:   test1, test2, test3, test4, test5
  GREEN: impl1, impl2, impl3, impl4, impl5

RIGHT (vertical / tracer bullet):
  RED→GREEN: test1→impl1
  RED→GREEN: test2→impl2
  RED→GREEN: test3→impl3

Why horizontal slicing fails:

  • Tests written in bulk test *imagined* behavior, not *actual* behavior
  • You end up testing the *shape* of things (data structures, function signatures) rather than user-facing behavior
  • You outrun your headlights, committing to test structure before understanding the implementation
  • Tests become insensitive to real changes — they pass when behavior breaks, fail when behavior is fine

This connects directly to GOOS outer/inner loops: each cycle through the inner loop teaches you something about the design. You need that learning before writing the next test.

The Golden Rule

Never write new functionality without a failing test. No exceptions.

Quick Reference

GOOS PrincipleAdonisJS Pattern
Walking SkeletonFunctional test (API) or browser test (rendered) on real route
Acceptance Test@japa/api-client (JSON APIs) or @japa/browser-client (rendered pages)
Page ObjectsClass-based pages (BasePage from @japa/browser-client)
Unit TestJapa test with container.swap() for isolation
Mock Objectsapp.container.swap(Service, () => fake)
Adapter LayerService wrapping third-party API (only for services the framework doesn't wrap)
Ports & AdaptersServices + IoC Container + @inject()
Test Data BuilderAdonisJS model factories
Tell, Don't AskThin controllers delegating to injected services
Listen to TestsDifficulty testing = design feedback

Workflow

1. Planning

Before writing any code:

  • Confirm with user what interface changes are needed
  • Determine acceptance test type: API client (JSON APIs) or browser client (rendered pages)
  • Confirm which behaviors to test (prioritize — you can't test everything)
  • Identify opportunities for deep modules
  • Design interfaces for testability
  • List behaviors to test (not implementation steps)
  • Get user approval on the plan

Ask: "What should the public interface look like? Which behaviors matter most?"

2. Tracer Bullet (Walking Skeleton)

Write ONE failing acceptance test → minimal implementation → GREEN. This is your walking skeleton — the thinnest end-to-end slice that proves the architecture works. It front-loads integration risk before you write real features.

The walking skeleton decides broad-brush architecture: routing style, rendering approach, database connectivity, authentication mechanism. Keep it thin but real — a health check or the simplest possible version of the first feature.

API app:    RED: client.post('/endpoint') → GREEN: Route → Controller → Service → Model
Rendered:   RED: visit('/page') → assertTextContains → GREEN: Route → Controller → View/Inertia

See acceptance-tests.md for tool selection and examples.

3. Incremental Loop

For each remaining behavior:

RED:   Write next test → fails
GREEN: Minimal code to pass → passes

Rules:

  • One test at a time
  • Only enough code to pass current test
  • Don't anticipate future tests
  • Keep tests focused on observable behavior

4. Refactor

After all tests pass, look for refactor candidates. Never refactor while RED — get to GREEN first.

5. Brownfield: Adding Features to Existing Code

When working in an existing codebase, the same cycle applies — but start by understanding what's already there:

  1. Read existing tests to understand current behavior and conventions
  2. Write a failing acceptance test for the new feature (same as greenfield)
  3. Work inward through existing layers — reuse existing services, models, and patterns
  4. Extract and refactor only when the new feature creates clear duplication or design strain

Don't restructure existing code preemptively. Let the new test reveal where the design needs to flex.

Per-Cycle Checklist

[ ] Test describes behavior, not implementation
[ ] Test uses public interface only
[ ] Test would survive internal refactor
[ ] Only mocking types I own (adapters, not third-party)
[ ] Code is minimal for this test
[ ] No speculative features added

Listening to the Tests (Design Feedback)

When tests are hard to write, that's not a testing problem — it's a design problem. The tests are telling you something about your code's structure:

Test SmellWhat It MeansAdonisJS Fix
Too many container.swap() calls in setupObject has too many dependenciesSplit into smaller, focused services
Test setup is 30+ linesObject does too muchExtract collaborators, simplify the API
Can't test without mocking your own servicesServices too tightly coupledLet services call through real container; test at a higher level
Need to mock concrete classes, not adaptersMissing an abstraction at the boundaryIntroduce an adapter service you own
Test name needs "and"Testing multiple behaviorsSplit into separate tests
Mocking values or DTOsOverusing mocksUse real value objects — only mock services at system boundaries

See goos-principles.md Part IV for the complete "Listening to the Tests" reference.

Common Mistakes

MistakeFix
Mocking the framework (Route, HttpContext)Use functional tests via @japa/api-client
Testing methods instead of behaviorName tests by feature: "calculates tax for premium users"
Skipping the failing test stepWatch it fail first — verify diagnostics are useful
Fat controllers with all logic inlineExtract services, inject with @inject()
Mocking third-party libraries directlyWrite adapter service, mock the adapter
Writing all tests before implementationVertical slices: one RED→GREEN cycle at a time
Starting from the database/model layerDevelop from inputs to outputs — start from the HTTP request
Building all infrastructure before featuresWalking skeleton first — thinnest slice end-to-end

Detailed References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.24%
按下载量换算33

Claude

29.25%
按下载量换算25

Cursor

21.42%
按下载量换算19

Gemini CLI

9.07%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills