Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

resolve-checks解决检查

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

1,728

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/flowglad/flowglad --skill resolve-checks

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限与联网能力。
  • 建议结合原始 README 核验具体用法,注意维护状态和功能边界。
  • 使用前请检查是否会触发文件读写或命令执行,确保环境安全。

SKILL.md

Resolve Checks

Systematically resolve all failing CI checks and address PR review feedback by running tests locally first, fixing issues, incorporating valid feedback, and verifying CI passes.

When to Use

  • When CI checks are failing on your PR
  • When you have unresolved PR review comments
  • Before attempting to merge a PR
  • When you want to proactively verify all checks pass
  • After making changes and before pushing
  • After receiving code review feedback

Core Principle

Run tests locally first, don't wait for CI. You have access to the full test suite locally. Catching failures locally is faster than waiting for CI round-trips.

Reference Documentation

For detailed information on test types, setup files, utilities, and common failure patterns, see test-reference.md.

Process

1. Identify the PR

# Get current branch
git branch --show-current

Use GitHub MCP to find the PR:

mcp__github__list_pull_requests with state: "open" and head: "<branch-name>"

2. Run Local Test Suite

Run all tests locally before checking CI status:

cd platform/flowglad-next

# Step 1: Type checking and linting (catches most issues)
bun run check

# Step 2: Backend tests (unit + db combined)
bun run test:backend

# Step 3: Frontend tests
bun run test:frontend

# Step 4: RLS tests (run serially)
bun run test:rls

# Step 5: Integration tests (end-to-end with real APIs)
bun run test:integration

# Step 6: Behavior tests (if credentials available)
bun run test:behavior

Run these sequentially. Fix failures at each step before proceeding to the next.

Note: test:backend combines unit and db tests for convenience. You can also run them separately with test:unit and test:db.

3. Fix Local Failures

When tests fail locally:

  1. Read the error output carefully - Understand what's actually failing
  2. Reproduce the specific failure - Run the single failing test file: bun test path/to/failing.test.ts
  3. Fix the issue - Make the necessary code changes
  4. Re-run the specific test - Verify your fix works
  5. Re-run the full suite - Ensure no regressions

Common Failure Patterns

Failure TypeLikely Cause
Type errorsSchema/interface mismatch
Lint errorsStyle violations
Unit test failuresLogic errors, missing MSW mock
DB test failuresSchema changes, test data collisions
RLS test failuresPolicy misconfiguration, parallel execution
Integration failuresInvalid credentials, service unavailable

See test-reference.md for detailed failure patterns and fixes.

4. Check CI Status

After local tests pass, check CI:

mcp__github__get_pull_request_status with owner, repo, and pull_number

Review each check's status. For failing checks:

  1. Get the failure details from GitHub
  2. Compare with local results - Did it pass locally?
  3. If CI-only failure, investigate environment differences:

- Missing environment variables - Different Node/Bun versions - Timing/race conditions - External service availability

5. Fix CI-Specific Failures

For failures that only occur in CI:

  1. Check the CI logs - Look for the actual error message
  2. Check environment differences: # Compare local vs CI environment bun --version node --version
  3. Check for parallelism issues - Some tests may not be parallel-safe (see RLS tests)
  4. Investigate flaky tests - See "Handling Flaky Tests" section below

6. Handling Flaky Tests

CRITICAL: Do not simply re-run CI hoping tests will pass. Flaky tests indicate real problems that must be diagnosed and fixed.

When a test passes locally but fails in CI (or fails intermittently):

Step 1: Identify the Flakiness Pattern

Run the failing test multiple times locally:

# Run 10 times to check for intermittent failures
for i in {1..10}; do bun test path/to/flaky.test.ts && echo "Pass $i" || echo "FAIL $i"; done

Step 2: Diagnose the Root Cause

Common causes of flaky tests:

SymptomRoot CauseFix
Different results each runNon-deterministic data (random IDs, timestamps)Use fixed test data or sort before comparing
Timeout failuresAsync operation too slow or never resolvesAdd proper await, increase timeout, or fix hanging promise
Race conditionsTest doesn't wait for async side effectsUse proper async/await, add waitFor(), or test the callback
Order-dependent failuresTest relies on state from previous testEnsure proper setup/teardown isolation
Parallel execution conflictsTests share mutable state (DB, globals, env vars)Use unique test data, proper isolation helpers
External service failuresTest depends on real API availabilityMock the service or handle unavailability gracefully

Step 3: Fix the Test (Not Just Re-run)

Always fix the underlying issue:

// BAD: Non-deterministic - order not guaranteed
const results = await db.query.users.findMany()
expect(results).toEqual([user1, user2])

// GOOD: Sort before comparing
const results = await db.query.users.findMany()
expect(results.sort((a, b) => a.id.localeCompare(b.id))).toEqual([user1, user2].sort((a, b) => a.id.localeCompare(b.id)))
// BAD: Race condition - side effect may not be complete
triggerAsyncOperation()
expect(sideEffect).toBe(true)

// GOOD: Wait for the operation
await triggerAsyncOperation()
expect(sideEffect).toBe(true)
// BAD: Timing-dependent
await sleep(100) // Hope this is enough time
expect(result).toBeDefined()

// GOOD: Poll for condition
await waitFor(() => expect(result).toBeDefined())

Step 4: Verify the Fix

After fixing:

  1. Run the test 10+ times locally to confirm it's stable
  2. Push and verify it passes in CI
  3. If it still fails in CI, there's an environment difference to investigate

7. Push Fixes and Verify

After fixing issues:

# Stage and commit fixes
git add -A
git commit -m "fix: resolve failing checks

- [describe what was fixed]

Co-Authored-By: Claude <noreply@anthropic.com>"

# Push to trigger CI
git push

Then wait for CI to complete and verify all checks pass:

mcp__github__get_pull_request_status with owner, repo, and pull_number

8. Iterate Until Green

Repeat steps 4-7 until all checks pass. Common iteration scenarios:

  • New failures appear - Your fix may have caused regressions
  • Flaky test still fails - Revisit "Handling Flaky Tests" section, dig deeper into root cause
  • CI timeout - Tests may be too slow, need optimization

Remember: The goal is a stable, passing test suite - not a lucky CI run. Every fix should address the root cause.

9. Address PR Review Feedback

After CI checks pass, review and address any PR comments left by reviewers.

Step 1: Fetch PR Comments

Get all review comments on the PR:

mcp__github__get_pull_request_comments with owner, repo, and pull_number

Also get the formal reviews:

mcp__github__get_pull_request_reviews with owner, repo, and pull_number

Step 2: Categorize Each Comment

For each comment, determine if it is:

CategoryDescriptionAction
Valid & ActionableIdentifies a real issue, bug, or improvementImplement the fix
Valid but Won't FixCorrect observation but intentional design choiceReply explaining the rationale
Already AddressedIssue was fixed in a subsequent commitResolve the comment
Invalid/MisunderstandingBased on incorrect assumptions about the codeReply with clarification
Nitpick/OptionalStyle preference or minor suggestionImplement if quick, otherwise discuss

Step 3: Incorporate Valid Feedback

For each valid comment:

  1. Read the specific file and line mentioned in the comment
  2. Understand the concern - What issue is the reviewer pointing out?
  3. Implement the fix - Make the necessary code changes
  4. Reply to the comment - Briefly explain what was changed
mcp__github__add_issue_comment with owner, repo, issue_number, and body

Or reply directly to the review comment thread.

Step 4: Resolve Addressed Comments

After incorporating feedback or providing clarification:

For comments you addressed: The comment should be resolved to indicate the feedback was incorporated. If GitHub MCP supports resolving comments, use that. Otherwise, reply with "Done" or "Fixed in [commit hash]" to signal completion.

For invalid comments: Reply with a clear, respectful explanation of why the current implementation is correct or intentional. Include:

  • What the code actually does
  • Why it's designed this way
  • Any relevant context the reviewer may have missed

Example reply for invalid feedback:

This is intentional - the `userId` here refers to the authenticated user making the request, not the target user. The authorization check happens in the middleware at line 45, so by this point we know the user has permission.

Step 5: Handle Review Requests

If the PR has "Changes Requested" status:

  1. Address all blocking comments from that review
  2. Re-request review from the reviewer once changes are made: gh pr edit <PR_NUMBER> --add-reviewer <USERNAME>

Common Review Feedback Patterns

Feedback TypeHow to Address
Missing error handlingAdd try/catch or Result type handling
Type safety concernsAdd proper types, remove any
Missing testsAdd test cases for the mentioned scenarios
Security issuesFix immediately, these are blocking
Performance concernsEvaluate and optimize if valid
Code clarityRename variables, add comments, or refactor
Breaking changesEnsure backwards compatibility or document migration

10. Final Verification

After addressing all feedback:

  1. Re-run local tests - Ensure your fixes didn't break anything
  2. Push changes - Trigger CI again
  3. Verify CI passes - All checks should be green
  4. Verify comments resolved - No unaddressed blocking feedback remains

Quick Reference

CommandWhat It Tests
bun run checkTypeScript types + ESLint
bun run test:unitPure functions, isolated logic
bun run test:dbDatabase operations, queries
bun run test:backendCombined unit + db tests
bun run test:rlsRow Level Security policies (run serially)
bun run test:frontendReact components and hooks
bun run test:integrationEnd-to-end with real services
bun run test:behaviorInvariants across dependency combinations

For detailed test types, setup files, utilities, failure patterns, and parallel safety rules, see test-reference.md.

Output

Report the final status:

If all checks pass and feedback addressed:

  • Confirm all local tests pass
  • Confirm all CI checks are green
  • List any notable fixes made
  • Summarize PR feedback that was incorporated
  • Note any comments that were resolved with explanations (not code changes)

If checks still fail:

  • List which checks are still failing
  • Describe what was attempted
  • Explain what remains to be investigated

If feedback remains unresolved:

  • List comments that still need discussion
  • Explain any disagreements with reviewer feedback
  • Suggest next steps (e.g., "discuss with reviewer" or "waiting for clarification")

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.05%
按下载量换算35

Claude

28.41%
按下载量换算28

Cursor

19.51%
按下载量换算19

Gemini CLI

8.36%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills