code-tour
यह क्या करती है
CodeTour के लिए 'tour' फाइलें बनाता है, जो कोड के अंदर स्टेप-बाय-स्टेप गाइड होती हैं। ये गाइड खास फाइलों और लाइनों की ओर इशारा करती हैं, ताकि कोड के हिस्से समझने में मदद मिले।
कब इस्तेमाल करें
- ✓जब कोई नया कोड समझने के लिए गाइड चाहता हो।
- ✓किसी खास फीचर का काम कैसे होता है, यह समझाने के लिए।
- ✓बदले गए कोड (PR) की रिव्यू के दौरान मार्गदर्शन के लिए।
Skill का लिंक
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/code-tour/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“नए डेवलपर्स के लिए एक टूर बनाओ जो समझाए कि ऑथेंटिकेशन सिस्टम कैसे काम करता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI कोड का विश्लेषण करता है और एक खास फाइल (.tour) बनाता है जिसे CodeTour प्लगइन इस्तेमाल करता है। इस फाइल में कोड में घूमने के निर्देश होते हैं, जो महत्वपूर्ण स्निपेट दिखाते हैं और समझाते हैं कि वे क्या करते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Code Tour
Create CodeTour .tour files for codebase walkthroughs that open directly to real files and line ranges. Tours live in .tours/ and are meant for the CodeTour format, not ad hoc Markdown notes.
A good tour is a narrative for a specific reader:
- what they are looking at
- why it matters
- what path they should follow next
Only create .tour JSON files. Do not modify source code as part of this skill.
When to Use
Use this skill when:
- the user asks for a code tour, onboarding tour, architecture walkthrough, or PR tour
- the user says "explain how X works" and wants a reusable guided artifact
- the user wants a ramp-up path for a new engineer or reviewer
- the task is better served by a guided sequence than a flat summary
Examples:
- onboarding a new maintainer
- architecture tour for one service or package
- PR-review walk-through anchored to changed files
- RCA tour showing the failure path
- security review tour of trust boundaries and key checks
When NOT to Use
| Instead of code-tour | Use |
|---|---|
| A one-off explanation in chat is enough | answer directly |
The user wants prose docs, not a .tour artifact |
documentation-lookup or repo docs editing |
| The task is implementation or refactoring | do the implementation work |
| The task is broad codebase onboarding without a tour artifact | codebase-onboarding |
Workflow
1. Discover
Explore the repo before writing anything:
- README and package/app entry points
- folder structure
- relevant config files
- the changed files if the tour is PR-focused
Do not start writing steps before you understand the shape of the code.
2. Infer the reader
Decide the persona and depth from the request.
| Request shape | Persona | Suggested depth |
|---|---|---|
| "onboarding", "new joiner" | new-joiner |
9-13 steps |
| "quick tour", "vibe check" | vibecoder |
5-8 steps |
| "architecture" | architect |
14-18 steps |
| "tour this PR" | pr-reviewer |
7-11 steps |
| "why did this break" | rca-investigator |
7-11 steps |
| "security review" | security-reviewer |
7-11 steps |
| "explain how this feature works" | feature-explainer |
7-11 steps |
| "debug this path" | bug-fixer |
7-11 steps |
3. Read and verify anchors
Every file path and line anchor must be real:
- confirm the file exists
- confirm the line numbers are in range
- if using a selection, verify the exact block
- if the file is volatile, prefer a pattern-based anchor
Never guess line numbers.
4. Write the .tour
Write to:
.tours/<persona>-<focus>.tour
Keep the path deterministic and readable.
5. Validate
Before finishing:
- every referenced path exists
- every line or selection is valid
- the first step is anchored to a real file or directory
- the
refpoints at a branch or commit that actually has every file the tour references (see below) - the tour tells a coherent story rather than listing files
The ref Field
ref ties the tour to a git branch or commit. It matters more than it looks: when ref is not the branch the reader has checked out, CodeTour opens each step's file from that revision in git, not from the files on disk. If a file is not in that revision, the step will not open — the reader sees "The editor could not be opened because the file was not found" even though the file is sitting right there. The tour and its comments still show, so the real cause is easy to miss.
Pick ref by tour type:
| Tour type | Set ref to |
|---|---|
| PR tour | the PR branch — never the base branch |
| Onboarding / architecture | the branch the reader will be on (often main), or leave it out |
| Not sure | leave ref out, so CodeTour reads files straight from disk |
The PR case is the common trap: a PR usually adds new files, and new files do not exist on the base branch yet. Point ref at the base (e.g. develop) and every step on a new file fails to open.
Before finishing, confirm each step's file actually exists at the ref you chose.
Step Types
Content
Use sparingly, usually only for a closing step:
{ "title": "Next Steps", "description": "You can now trace the request path end to end." }
Do not make the first step content-only.
Directory
Use to orient the reader to a module:
{ "directory": "src/services", "title": "Service Layer", "description": "The core orchestration logic lives here." }
File + line
This is the default step type:
…
अक्सर पूछे जाने वाले सवाल
'CodeTour' क्या है?
यह एक ऐसी फाइल है जिसमें कोड को एक्सप्लोर करने का रोडमैप होता है, जिसमें स्टेप होते हैं जो कोड के खास हिस्सों तक ले जाते हैं और उनकी व्याख्या करते हैं।
'ref' फ़ील्ड किसलिए है?
'ref' फ़ील्ड टूर को कोड के किसी खास वर्शन (जैसे ब्रांच या कमिट) से जोड़ता है। इससे कोड बदलने के बाद भी टूर सही फाइलों की ओर इशारा करता है।
क्या मैं इससे कोड एडिट कर सकता हूँ?
नहीं, यह टूल सिर्फ कोड समझने वाली गाइड बनाने के लिए है, कोड बदलने के लिए नहीं।
जानकारी
लेखक का मूल विवरण
Create CodeTour `.tour` files — persona-targeted, step-by-step walkthroughs with real file and line anchors. Use for onboarding tours, architecture walkthroughs, PR tours, RCA tours, and structured "explain how this works" requests. Use when the user asks for a code tour, onboarding walkthrough, PR tour, or an explanation of how a subsystem works.
repo: affaan-m/ECC
लोकप्रियता
- GitHub स्टार
- 280k
- रैंकिंग में स्थान
- #149
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
accessibility
280kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।
agent-architecture-audit
280kयह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।
agent-eval
280kयह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।
agent-harness-construction
280kयह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।
मिलती-जुलती skills
technical-documentation
394kयह आपके एजेंट को साफ़ तकनीकी डॉक्स और एजेंट निर्देश फ़ाइलें लिखने और जांचने में मदद करती है, ताकि लोग और AI टूल उन्हें आसानी से समझ सकें।
archify
260kArchify इंस्टॉल करती है, जो एक छोटी JSON विशिष्टता को जांचे गए, इंटरैक्टिव HTML डायग्राम में बदलती है, जिसे छवि या वीडियो के रूप में निर्यात किया जा सकता है।
concept-diagrams
260kSVG ग्राफ़िक्स वाली एक HTML फ़ाइल के रूप में साफ़, सपाट शैक्षिक डायग्राम बनाती है, जिनमें भौतिकी, जीव विज्ञान, शरीर रचना, फ़्लोर प्लान और प्रक्रियाएं शामिल हैं।