スキル一覧に戻る
sharpner

core-rules

by sharpner

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

SKILL.md


name: core-rules description: Use ALWAYS. Core development rules for production-ready code - guard clauses, no shortcuts, no mocking.

Core Development Rules

Code Style (ENFORCED)

  • Guard clauses everywhere - NO else blocks allowed
  • NO TODOs - Fix immediately, no placeholders
  • NO mocking - Real backend connections only
  • NO utils/ folders - Proper package design

Quality Gates

  • 100% test pass rate required before commit
  • Never push to main - Always use feature branches
  • TDD for bugs - Test MUST fail first, then fix

What We Don't Accept

  • Shortcuts or "good enough" implementations
  • Simplifications that skip functionality
  • Over-engineering beyond current requirements
  • Backwards-compatibility hacks (unused vars, re-exports, etc.)

Guard Clause Examples

// CORRECT
function processUser(user?: User) {
  if (!user) return null;
  if (!user.isActive) return null;

  // Happy path at lowest indentation
  return user.process();
}

// FORBIDDEN
function processUser(user?: User) {
  if (user) {
    if (user.isActive) {
      return user.process();
    } else {  // NO - else blocks forbidden
      return null;
    }
  }
}
// CORRECT
func processUser(_ user: User?) {
    guard let user = user else { return }
    guard user.isActive else { return }

    // Happy path
    user.process()
}

// FORBIDDEN
func processUser(_ user: User?) {
    if let user = user {
        if user.isActive {  // NO - nested conditions
            user.process()
        }
    }
}
// CORRECT
func processUser(user *User) error {
    if user == nil {
        return ErrNoUser
    }
    if !user.IsActive {
        return ErrInactiveUser
    }

    // Happy path
    return user.Process()
}

// FORBIDDEN - else blocks
func processUser(user *User) error {
    if user != nil {
        if user.IsActive {
            return user.Process()
        } else {  // NO
            return ErrInactiveUser
        }
    } else {  // NO
        return ErrNoUser
    }
}

Commit Philosophy

BEFORE COMMIT:
- All tests green (100%)
- No TODOs in code
- No placeholder implementations
- Real connections (no mocks)
- Guard clauses used everywhere

"Quality is not negotiable."

スコア

総合スコア

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

レビュー

💬

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