スキル一覧に戻る
michaellperry

infrastructure-standards

by michaellperry

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: infrastructure-standards description: Best practices for Docker, CI/CD scripts, and Security Middleware.

Infrastructure Standards

Role Responsibilities

As a Platform Engineer, you are responsible for:

  • Docker: Containerization of API, Web, and Database services.
  • Scripts: Maintenance of build, test, and deployment scripts in scripts/.
  • Middleware: Security and Multi-tenancy middleware in src/GloboTicket.API/Middleware/.
  • Auth: Configuration of Authentication and Authorization policies.

Docker Best Practices

Docker Compose

  • Always use specific versions for images (no latest).
  • Define health checks for all services.
  • Use .env files for environment-specific configuration.
services:
  api:
    image: globoticket-api:1.0
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
      interval: 30s
      timeout: 10s
      retries: 3

Scripting Standards

Bash & PowerShell

  • Ensure parity between scripts/bash/ and scripts/powershell/.
  • Scripts must be idempotent where possible.
  • Always check for prerequisites (e.g., Docker running) before execution.

Security Middleware

Tenant Resolution

  • Tenant Context is critical security infrastructure.
  • Never bypass TenantResolutionMiddleware in production code.
  • Always log tenant resolution failures as Warnings or Errors.
public async Task InvokeAsync(HttpContext context)
{
    // ... validation logic ...
    if (tenantIdClaim == null)
    {
        _logger.LogWarning("Authenticated user {Username} has no TenantId claim", context.User.Identity.Name);
    }
}

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です