スキル一覧に戻る
zerobias-org

security-standards

by zerobias-org

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

SKILL.md


name: security-standards description: Security standards for credential handling and authentication

Security Rules

🚨 CRITICAL RULES (Immediate Failure)

1. Never Commit Secrets

  • NEVER commit API keys, tokens, passwords
  • NEVER commit .env files
  • NEVER log sensitive data
  • Check before EVERY commit

2. Credential Handling

  • Credentials only from .env or .connectionProfile.json
  • Never hardcode credentials
  • Never expose credentials in error messages
  • Always mask sensitive data in logs

3. No Environment Variables in Production Code

  • Module code MUST NOT use process.env directly
  • Only test code can access environment variables
  • All config through connection profiles

🟡 STANDARD RULES

Authentication Patterns

Priority order for auth methods:

  1. Basic Authentication
  2. API Token/Key
  3. Personal Access Token
  4. Bearer Token
  5. OAuth2 (when supported)

Credential Discovery

// Priority order for finding credentials
1. .env file (for development/testing)
2. .connectionProfile.json (for module config)
3. Ask user to provide

Connection Profile Format

{
  "auth_type": "token",
  "token": "secret_value_here",
  "base_url": "https://api.example.com"
}

Secure Storage

  • Use .env for development credentials
  • Add .env to .gitignore
  • Use .connectionProfile.json for config
  • Never store in code or comments

API Key Validation

# Test credentials before implementation
curl -H "Authorization: Bearer $API_TOKEN" \
     https://api.example.com/user

# Store working token in .env
echo "API_TOKEN=verified_token" >> .env

🟢 GUIDELINES

Error Messages

// Bad - exposes token
throw new Error(`Auth failed with token: ${token}`);

// Good - generic message
throw new InvalidCredentialsError();

Logging Practices

// Bad - logs sensitive data
console.log('Connecting with:', credentials);

// Good - logs safe metadata
console.log('Connecting to:', baseUrl);

Token Refresh

  • Implement token refresh when applicable
  • Store refresh tokens securely
  • Handle expiration gracefully
  • Don't expose refresh logic

Rate Limiting

  • Respect rate limit headers
  • Implement exponential backoff
  • Cache responses when appropriate
  • Throw RateLimitExceededError

HTTPS Requirements

  • Always use HTTPS for API calls
  • Verify SSL certificates
  • No downgrade to HTTP
  • Reject self-signed certs in production

📝 EXCEPTIONS LOG

Development Exceptions

  • Can use HTTP for local testing only
  • Can log more details in debug mode
  • Must remove before commit

Special Security Requirements

Document when operations need:

  • Elevated permissions
  • Admin access
  • Specific OAuth scopes
  • IP whitelisting

スコア

総合スコア

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

レビュー

💬

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