← Back to list

autofix-namespace
by hyz0906
⭐ 0🍴 0📅 Jan 19, 2026
SKILL.md
name: autofix-namespace description: Fixes 'not a member of namespace' errors by adding namespace qualifiers or using declarations.
Namespace Skill
Fixes C++ namespace-related compilation errors.
Detection Patterns
'X' is not a member of 'std''X' is not a member of 'namespace''X' was not declared in this scope(when namespace issue)
Strategy
- Identify Symbol: Extract the symbol and expected namespace.
- Add Qualifier: Prefix the symbol with namespace, or add
using.
Instructions
Step 1: Parse Error
From: 'cout' is not a member of 'std'
Symbol: cout, Namespace: std
Step 2: Common Fixes
Add namespace prefix:
// Before
cout << "Hello"; // ERROR
// After
std::cout << "Hello";
Add using declaration:
// At top of file or function
using std::cout;
// Or
using namespace std; // Less recommended
Common std:: Symbols
| Symbol | Namespace |
|---|---|
cout, cin, endl | std:: |
vector, map, set | std:: |
string | std:: |
unique_ptr, shared_ptr | std:: |
chrono::* | std::chrono:: |
Score
Total Score
50/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon