Skip to content
cccskills
FreePublished on GitHub

structured-content-storage

Organize code and data projects into clear folders with documented workflows, data fields, dependencies, and changes. The skill guides new machine learning and data processing scripts, while preserving existing project structure during modifications.

OriginalShow the original description

Enforces structured, highly documented storage for code and data projects. Use when working on machine learning scripts, data processing, code creation, or script modification that should preserve clear structure and documentation.

Run score Not tested

See how to install

Good for

  • Creating a documented machine learning training project
  • Organizing data cleaning code and field definitions
  • Updating scripts while preserving project structure
  • Documenting analysis workflows, inputs, and outputs

Files included (10)

  • SKILL.md10.1 KB
  • assets/templates/CHANGELOG-template.md3.3 KB
  • assets/templates/DATA_DICTIONARY-template.md6.0 KB
  • assets/templates/data-processing-README.md3.5 KB
  • assets/templates/ml-project-README.md2.4 KB
  • assets/templates/PROCESS-template.md7.9 KB
  • references/comment-guidelines.md16.2 KB
  • references/directory-templates.md9.9 KB
  • references/documentation-standards.md6.9 KB
  • references/index.md1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Structured Content Storage Skill

Ensures all created or processed content follows strict organizational and documentation standards with structured storage, comprehensive comments, and complete project documentation.

When to Use This Skill

Use this skill for tasks like:

  • Writing machine learning training scripts
  • Creating data processing or data cleaning scripts
  • Developing any code that processes or transforms data
  • Modifying existing structured projects or scripts
  • Creating analysis scripts or computational workflows
  • Building data pipelines or ETL processes
  • Any code creation task that produces files or processes data

Not For / Boundaries

  • Pure conversational queries without code output
  • Reading or analyzing existing code without modification
  • Simple one-line fixes that don't affect project structure

Required inputs: If modifying existing projects, must first read and understand the original structure.

Quick Reference

Core Principles

1. Structured Directory Layout

project-name/
├── README.md                 # Project overview and directory guide
├── src/                      # Source code with detailed comments
│   ├── main.py              # Main entry point
│   └── utils.py             # Utility functions
├── data/                     # Data files
│   ├── raw/                 # Original data
│   ├── processed/           # Cleaned/transformed data
│   └── DATA_DICTIONARY.md   # Data field descriptions
├── docs/                     # Documentation
│   ├── PROCESS.md           # Step-by-step process description
│   └── CHANGELOG.md         # Modification history
├── outputs/                  # Results, models, reports
└── requirements.txt          # Dependencies

2. Code Documentation Standards

  • Every function must have docstring explaining purpose, parameters, returns
  • Complex logic must have inline comments explaining the "why"
  • File headers must describe the file's purpose and main components
  • Magic numbers must be explained or converted to named constants

3. Required Documentation Files

README.md must include:

  • Project purpose and goals
  • Directory structure explanation
  • Setup and installation instructions
  • Usage examples
  • Dependencies

PROCESS.md must include:

  • Step-by-step workflow description
  • Data flow diagrams (text-based acceptable)
  • Key decisions and rationale
  • Expected inputs and outputs

DATA_DICTIONARY.md (for data projects) must include:

  • Field name, type, description for each column
  • Value ranges and constraints
  • Data source and collection method
  • Update frequency

CHANGELOG.md (for modifications) must include:

  • Date and version
  • What was changed and why
  • Files affected
  • Breaking changes or migration notes

4. Modification Protocol

When modifying existing structured projects:

  1. Read and understand original structure
  2. Maintain existing organizational patterns
  3. Update all affected documentation
  4. Add detailed entry to CHANGELOG.md
  5. Update comments in modified code sections

Common Patterns

Pattern 1: ML Training Project Structure

ml-training-project/
├── README.md                 # Project overview
├── src/
│   ├── train.py             # Training script with detailed comments
│   ├── model.py             # Model architecture
│   ├── data_loader.py       # Data loading utilities
│   └── evaluate.py          # Evaluation metrics
├── data/
│   ├── raw/                 # Original datasets
│   ├── processed/           # Preprocessed data
│   └── DATA_DICTIONARY.md   # Feature descriptions
├── models/                   # Saved model checkpoints
├── logs/                     # Training logs
├── docs/
│   ├── TRAINING_PROCESS.md  # Training methodology
│   └── MODEL_ARCHITECTURE.md # Model design decisions
└── requirements.txt

Pattern 2: Data Cleaning Project Structure

data-cleaning-project/
├── README.md
├── src/
│   ├── clean.py             # Main cleaning script
│   ├── validators.py        # Data validation functions
│   └── transformers.py      # Transformation utilities
├── data/
│   ├── raw/                 # Original data
│   ├── processed/           # Cleaned data
│   ├── DATA_DICTIONARY.md   # Field descriptions
│   └── QUALITY_REPORT.md    # Data quality metrics
├── docs/
│   └── CLEANING_PROCESS.md  # Cleaning steps and rationale
└── requirements.txt

Pattern 3: Code Comment Template

"""
Module: data_processor.py
Purpose: Process and transform raw sensor data into analysis-ready format

Main components:
- DataLoader: Reads raw CSV files
- DataCleaner: Handles missing values and outliers
- DataTransformer: Applies normalization and feature engineering
"""

def clean_sensor_data(df, threshold=0.95):
    """
    Clean sensor data by removing outliers and handling missing values.

    Args:
        df (pd.DataFrame): Raw sensor data with columns [timestamp, sensor_id, value]
        threshold (float): Completeness threshold (0-1) for keeping sensors

    Returns:
        pd.DataFrame: Cleaned data with outliers removed and missing values imputed

    Process:
        1. Remove sensors with >5% missing data
        2. Detect outliers using IQR method (1.5 * IQR)
        3. Impute remaining missing values with forward fill
    """
    # Remove sensors with insufficient data
    # Threshold of 0.95 means sensor must have 95% valid readings
    completeness = df.groupby('sensor_id')['value'].count() / len(df)
    valid_sensors = completeness[completeness >= threshold].index
    df = df[df['sensor_id'].isin(valid_sensors)]

    # Detect and remove outliers using IQR method
    Q1 = df['value'].quantile(0.25)
    Q3 = df['value'].quantile(0.75)
    IQR = Q3 - Q1
    lower_bound = Q1 - 1.5 * IQR  # Standard outlier detection threshold
    upper_bound = Q3 + 1.5 * IQR
    df = df[(df['value'] >= lower_bound) & (df['value'] <= upper_bound)]

    # Forward fill remaining missing values
    # Assumes temporal continuity in sensor readings
    df = df.sort_values(['sensor_id', 'timestamp'])
    df['value'] = df.groupby('sensor_id')['value'].fillna(method='ffill')

    return df

Pattern 4: CHANGELOG.md Entry Template

## [Version 1.2.0] - 2026-01-19

### Changed
- Modified `train.py:45-67` to add early stopping mechanism
  - Reason: Prevent overfitting on small validation sets
  - Added `patience` parameter (default=10 epochs)
  - Monitors validation loss instead of training loss

### Added
- New function `evaluate.py:calculate_confusion_matrix()`
  - Provides detailed classification metrics
  - Outputs confusion matrix visualization

### Fixed
- Fixed data loader bug in `data_loader.py:123`
  - Issue: Incorrect handling of missing timestamps
  - Solution: Added explicit timestamp validation and interpolation

### Files Affected
- `src/train.py` (lines 45-67, 89-92)
- `src/evaluate.py` (new function added)
- `src/data_loader.py` (line 123)
- `docs/TRAINING_PROCESS.md` (updated early stopping section)

Examples

Example 1: Creating ML Training Script

Input: "Create a script to train a neural network for image classification"

Steps:

  1. Create structured directory layout with src/, data/, models/, docs/
  2. Write src/train.py with comprehensive docstrings and inline comments
  3. Create README.md with project overview and directory structure
  4. Create docs/TRAINING_PROCESS.md describing training methodology
  5. Create docs/MODEL_ARCHITECTURE.md explaining model design
  6. Create requirements.txt with all dependencies
  7. Add data dictionary if custom dataset is used

Expected output: Complete project structure with all documentation files, heavily commented code, and clear organization.

Example 2: Creating Data Cleaning Script

Input: "Write a script to clean customer transaction data"

Steps:

  1. Create structured directory with src/, data/raw/, data/processed/, docs/
  2. Write src/clean.py with detailed comments explaining each cleaning step
  3. Create data/DATA_DICTIONARY.md describing all fields before and after cleaning
  4. Create docs/CLEANING_PROCESS.md with step-by-step cleaning methodology
  5. Create data/QUALITY_REPORT.md with data quality metrics (completeness, validity)
  6. Create README.md with usage instructions and directory guide
  7. Add requirements.txt

Expected output: Structured project with comprehensive documentation of data transformations and quality metrics.

Example 3: Modifying Existing Structured Project

Input: "Update the training script to add learning rate scheduling"

Steps:

  1. Read existing project structure and understand organization
  2. Read src/train.py to understand current implementation
  3. Make targeted modifications to training loop
  4. Add detailed comments explaining new scheduling logic
  5. Update docs/TRAINING_PROCESS.md with new scheduling section
  6. Create detailed CHANGELOG.md entry:
    • What changed (specific line numbers)
    • Why it changed (rationale)
    • How it affects training (expected impact)
  7. Update README.md if usage instructions changed

Expected output: Modified code with preserved structure, updated documentation, and comprehensive change log.

References

  • references/documentation-standards.md: Detailed documentation requirements
  • references/directory-templates.md: Standard directory structures for different project types
  • references/comment-guidelines.md: Code commenting best practices
  • assets/templates/: Ready-to-use project templates

Maintenance

  • Sources: Software engineering best practices, data science project standards, documentation conventions
  • Last updated: 2026-01-19
  • Known limits: Does not enforce specific coding style (PEP8, etc.) beyond documentation requirements

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

adaptyv

FreeSummary

Support experimental validation of designed proteins through a cloud laboratory. Prepare and optimize sequences, submit tests for binding, expression, thermal stability, or enzyme activity, track experiment progress, and retrieve results through the API.

  • Submit designed proteins for binding tests
  • Request expression, thermal stability, or enzyme activity tests
  • Optimize sequences for solubility before experiments
foryourhealth111-pixel/Vibe-Skills3.8KUpdated Oct 23, 2026

aeon

FreeSummary

Analyze time series, observations ordered over time, using aeon in Python. Build classification, prediction, and clustering workflows, detect unusual patterns or changes, and compare methods through an interface compatible with scikit-learn.

  • Classifying time series by their patterns
  • Forecasting future values from past observations
  • Detecting anomalies and change points
foryourhealth111-pixel/Vibe-Skills3.8KUpdated Oct 23, 2026

algorithmic-art

FreeSummary

Create original generative art with p5.js, using code to produce patterns and motion. Receive a written artistic concept and an interactive HTML viewer with adjustable parameters, reproducible random variations, seed navigation, and PNG downloads.

  • Create art from particle motion and flow fields
  • Explore patterns by adjusting sliders
  • Reproduce a favorite variation with the same seed
foryourhealth111-pixel/Vibe-Skills3.8KUpdated Oct 23, 2026

alpha-vantage

FreeSummary

Retrieve stock prices, exchange rates, cryptocurrency prices, company financial statements, and economic indicators through the Alpha Vantage API. It also covers historical data, news sentiment, and technical indicators, which summarize price and trading patterns.

  • Retrieve historical stock prices and trading volumes
  • Collect company financial statements and earnings data
  • Check foreign exchange and cryptocurrency prices
foryourhealth111-pixel/Vibe-Skills3.8KUpdated Oct 23, 2026

Design backend systems with clear boundaries between business rules, databases, and external services. Use Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to organize new applications, refactor existing code, and make core logic easier to test.

  • Planning the structure of a new backend
  • Refactoring tightly coupled applications
  • Testing business rules independently of external services
foryourhealth111-pixel/Vibe-Skills3.8KUpdated Oct 23, 2026

astropy

FreeSummary

Helps process astronomical data in Python by converting coordinates, units, and time scales, working with FITS observation files, matching object catalogs, and calculating distances using cosmological models.

  • Converting celestial coordinates
  • Reading and editing FITS observation files
  • Matching objects across astronomical catalogs
foryourhealth111-pixel/Vibe-Skills3.8KUpdated Oct 23, 2026

See all skills by foryourhealth111-pixel

Report a problem with this skill