Agent skill
dotnet-fast-lookup-lite
고속 탐색 핵심 패턴
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/dotnet-fast-lookup-lite
SKILL.md
고속 탐색 핵심
1. HashSet<T>
// O(1) 존재 여부 확인
var allowedIds = new HashSet<int> { 1, 2, 3, 4, 5 };
if (allowedIds.Contains(userId))
{
// 허용된 사용자
}
2. FrozenSet<T> (.NET 8+)
using System.Collections.Frozen;
// 불변 고속 탐색
var allowedExtensions = new[] { ".jpg", ".png", ".gif" }
.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
3. Dictionary 최적화
// ❌ 두 번 조회
if (dict.ContainsKey(key))
var value = dict[key];
// ✅ 한 번 조회
if (dict.TryGetValue(key, out var value))
{
// value 사용
}
4. 사용 시점
| 시나리오 | 권장 컬렉션 |
|---|---|
| 자주 변경되는 집합 | HashSet<T> |
| 읽기 전용 설정 | FrozenSet<T> |
| Key-Value 캐시 | Dictionary<K,V> |
상세 내용:
/dotnet-fast-lookupskill 참조
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?