skills/code_fix/SKILL.md
```markdown # SKILL: code_fix ## Task Description This skill focuses on fixing errors in code snippets to ensure they are functional and meet the implied requirements of the provided context. The primary goal is to debug and correct code, not to rewrite it from scratch unless necessary. ## Output Format The output should be a corrected code snippet, ready to be executed. Include comments explaining the changes made and the reasoning behind them. The corrected code should be a complete and runn
npx skillsauth add prathamchopra001/inquiro skills/code_fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# SKILL: code_fix
## Task Description
This skill focuses on fixing errors in code snippets to ensure they are functional and meet the implied requirements of the provided context. The primary goal is to debug and correct code, not to rewrite it from scratch unless necessary.
## Output Format
The output should be a corrected code snippet, ready to be executed. Include comments explaining the changes made and the reasoning behind them. The corrected code should be a complete and runnable snippet.
## Decision Framework
1. **Understand the Error:** Carefully analyze the error messages (if any) and the code's intent based on surrounding context.
2. **Identify the Root Cause:** Pinpoint the specific line(s) of code causing the error or preventing the code from achieving its intended purpose.
3. **Implement the Fix:** Modify the code to correct the error. Prioritize minimally invasive changes that address the core issue.
4. **Add Comments:** Clearly explain the changes made and why they were necessary.
5. **Test (Inferred):** Mentally simulate the code execution to ensure the fix resolves the issue and doesn't introduce new problems. Consider edge cases.
6. **Handle Edge Cases:** If the original code has potential edge cases or vulnerabilities, address them with appropriate error handling or input validation.
7. **Confidence Scoring:**
- **High Confidence (90-100%):** The error is clear, the fix is straightforward, and the corrected code demonstrably works.
- **Medium Confidence (70-89%):** The error is understood, but the fix involves some assumptions or potential trade-offs.
- **Low Confidence (50-69%):** The error is unclear, the fix is a best guess, and further testing is recommended. (In such cases, explicitly state the uncertainty in the comments.)
## Common Patterns
**Example 1:**
**Input:**
```python
def calculate_average(numbers):
total = sum(numbers)
return total / len
Output:
def calculate_average(numbers):
"""Calculates the average of a list of numbers."""
total = sum(numbers)
return total / len(numbers) # Fixed: Used len(numbers) instead of len
Example 2:
Input:
for i in range(10)
print(i)
Output:
# Added a colon to the end of the for loop statement.
for i in range(10):
print(i)
Example 3:
Input:
def greet(name):
print("Hello" + name)
greet("World")
Output:
def greet(name):
"""Greets the given name."""
print("Hello " + name) # Added a space after "Hello" for better readability.
greet("World")
development
# SKILL.md: task_generation ## Task Description Generates focused research tasks to advance a scientific objective by addressing knowledge gaps and balancing exploration/exploitation. Prioritizes tasks that validate strong findings or explore high-impact hypotheses. ## Output Format **JSON Array** of objects with these fields: - `type`: "Exploration" (new hypotheses) or "Exploitation" (existing hypothesis validation) - `description`: Specific action to take (e.g., "Test hypothesis X un
development
```markdown # SKILL: Scoring ## Task Description This role is responsible for assigning scores or ratings based on predefined criteria. It involves evaluating information and applying a consistent scoring rubric. ## Output Format The output should be a JSON object with the following structure: ```json { "score": INTEGER, "reason": STRING, "confidence": FLOAT (0.0 to 1.0) } ``` ## Decision Framework 1. **Identify Criteria:** Understand the specific criteria to be used for scoring. This
development
```markdown # SKILL: schema_design ## Task Description This skill focuses on designing effective and well-structured schemas for various data types, ensuring data integrity and facilitating efficient data processing. It involves defining the structure, data types, and constraints for datasets. ## Output Format Output should be a well-formatted JSON schema definition, including: * `type`: Data type (e.g., "object", "string", "number", "array", "boolean") * `properties`: (For objects) A dict
development
```markdown # SKILL: Report Writing ## Task Description This skill focuses on synthesizing research findings into concise, well-structured reports. It involves identifying key themes, patterns, and insights from individual findings, and presenting them in a coherent and informative manner. ## Output Format The output should be a structured report, formatted as follows: ```json { "report_title": "Title of the Report", "executive_summary": "A brief overview of the report's key findings and