Skip to content
Back to skills

Main

ASecurity

This layer encompasses the core functionality of the project, managing the primary modules and their interactions. Trigger: When working in main/ — adding, modifying, or debugging core functionalities.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 26, 2026
ai-agentspythonbashtestingdebugging

Works with

  • cursor

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned September 26, 2026

npx -y skills add JNZader/repoforge --skill main --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Main?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Main
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jnzader-main-repoforge/badge)](https://www.skillsdirectory.com/skills/jnzader-main-repoforge)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: main-layer
description: >
  This layer encompasses the core functionality of the project, managing the primary modules and their interactions.
  Trigger: When working in main/ — adding, modifying, or debugging core functionalities.
license: Apache-2.0
metadata:
  author: repoforge
  version: "1.0"
  complexity: medium
  token_estimate: 450
  dependencies: []
  related_skills: []
  load_priority: high
---

<!-- L1:START -->
# main-layer

This skill covers the core functionality and structure of the main layer.

**Trigger**: When working in main/ directory and its main responsibility.
<!-- L1:END -->

<!-- L2:START -->
## Quick Reference

| Task | Pattern |
|------|---------|
| Create a new module | `eval/harness.py` |

## Critical Patterns (Summary)
- **Module Initialization**: Ensure proper path setup when running modules directly.
- **Data Adaptation**: Use adapters for valid target identifiers in the project.
<!-- L2:END -->

<!-- L3:START -->
## Critical Patterns (Detailed)

### Module Initialization

Ensure proper path setup when running modules directly to avoid import errors.

```python
# eval/harness.py
import sys
import os

sys.path.append(os.path.dirname(os.path.abspath(__file__)))
```

### Data Adaptation

Utilize adapters to manage valid target identifiers, ensuring consistent data handling across modules.

```python
# repoforge/adapters.py
def adapt_for_cursor(data):
    # Adapt data for cursor usage
    pass
```

## When to Use

- When creating or modifying core modules that interact with the main functionality.
- When integrating new features that require adjustments to existing data handling.

## Commands

```bash
python -m eval.harness
```

## Anti-Patterns

### Don't: Modify core modules without testing

Changing core modules can lead to unexpected behavior across the project.

```python
# BAD
def broken_function():
    return undefined_variable
```
<!-- L3:END -->

Files in this skill

  • SKILL.md1.9 KB
  • cli/SKILL.md1.5 KB
  • docs_prompts/SKILL.md1.9 KB
  • harness/SKILL.md1.8 KB
  • prompts/SKILL.md1.4 KB
  • ripgrep/SKILL.md1.4 KB
  • scenarios_real/SKILL.md1.5 KB
  • test_adapters/SKILL.md1.4 KB
  • test_compressor/SKILL.md1.8 KB
  • test_graph/SKILL.md1.9 KB
  • test_plugins/SKILL.md1.7 KB
  • test_ripgrep/SKILL.md2.1 KB
  • test_scorer/SKILL.md1.8 KB
  • test_security/SKILL.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.