← 返回
未分类 中文

Frontend Backend Flow Test

Audit-first frontend-backend contract analyzer for static API compatibility checks. Compare frontend request behavior with backend endpoint contracts, DTO hi...
审计优先的前后端契约分析器,用于静态API兼容性检查。比较前端请求行为与后端端点契约、DTO等。
dlawnsdk dlawnsdk 来源
未分类 clawhub v0.3.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 413
下载
💾 0
安装
1
版本
#latest

概述

Frontend-Backend Flow Test

Use this skill as an audit-first contract checker.

Primary purpose:

  • extract frontend API calls
  • extract backend endpoint contracts
  • compare method/path/query/body/auth hints
  • generate actionable audit reports

Secondary purpose:

  • generate limited experimental live-check helpers only when static audit is insufficient and the environment is explicitly safe

Default workflow

  1. Run static audit first with scripts/audit_contracts.py
  2. Read the generated Markdown and JSON reports
  3. Fix high-severity contract mismatches before considering live checks
  4. Use live verification only for narrow follow-up validation in dev/staging

Core command

python3 scripts/audit_contracts.py \
  --frontend /path/to/frontend \
  --backend /path/to/backend \
  --output-dir ./out/audit \
  --exclude .dart_tool,coverage \
  --format both \
  --fail-on high

What this skill is good at

  • finding missing backend endpoints referenced by frontend code
  • detecting HTTP method drift
  • detecting path drift and base-path mismatches
  • comparing query/body/auth hints between frontend and backend
  • summarizing likely breakpoints before release or QA
  • auditing multiple surfaces against the same backend

What this skill is not

  • not a real API regression framework
  • not a replacement for workspace QA tests
  • not a full E2E test framework
  • not a production-safe write tester
  • not guaranteed rollback tooling
  • not comprehensive support for arbitrary frameworks/languages
  • not a replacement for manual QA or runtime observability

Current extraction coverage

Frontend

  • Axios-style calls
  • fetch(...)
  • some Dart/Dio direct calls and wrapper patterns
  • basic alias/baseURL/header inference

Backend

  • Spring controller mappings
  • Java/Kotlin DTO field hints
  • selected Spring Security route hints
  • Express app/router mappings
  • same-file Express router mount prefix inference
  • Laravel route file mappings
  • Laravel resource/apiResource expansion
  • basic request body / query / multipart inference

Reporting expectations

Expect findings such as:

  • missing-backend-endpoint
  • method-mismatch
  • path-mismatch
  • query-hint-mismatch
  • body-hint-mismatch
  • response-hint-mismatch
  • auth-hint-mismatch
  • backend-only-endpoint

Treat the report as a prioritized contract-audit output, not as runtime proof that a user flow succeeds.

References

Read these only when needed:

版本历史

共 1 个版本

  • v0.3.1 当前
    2026-05-03 10:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,811
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,709
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,085 📥 813,258