Add New Source

Generate C++ header and implementation files with FLEKS conventions and Makefile registration.

3|2|Updated Jul 5, 2023
One-click install
npx skills add https://github.com/SWMFsoftware/FLEKS --skill add-new-source
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Add New Source
Source: https://github.com/SWMFsoftware/FLEKS/tree/main/.agent/skills/add-new-source
Command: npx skills add https://github.com/SWMFsoftware/FLEKS --skill add-new-source

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new source code files to the FLEKS project, ensuring adherence to established coding standards and conventions.

Core Features & Use Cases

  • Boilerplate Generation: Creates new .h and .cpp files with pre-defined templates.
  • Convention Enforcement: Guides users on naming conventions, header order, and best practices.
  • Build Integration: Reminds users to update Makefiles and regenerate build configurations.
  • Use Case: A developer needs to add a new utility class to handle grid operations. This Skill provides the correct file structure, naming, and build instructions to integrate it seamlessly.

Quick Start

Use the Add New Source skill to create a new header and implementation file for a class named 'ParticleTracker'.

Frequently Asked Questions about Add New Source

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new C++ source files to the FLEKS project?

To add new C++ source files to the FLEKS project, this Skill generates header and implementation pairs with correct boilerplate, automatically applying naming conventions, include guards, and header ordering for seamless integration.

How do I generate boilerplate C++ code for a new class?

Generating boilerplate C++ code for a new class involves creating pre-defined .h and .cpp file templates. This Skill provides the correct file structure, standard naming, and build instructions to integrate the new class seamlessly.

Does adding a new C++ file require updating the Makefile?

Adding a new C++ file requires updating the Makefile. This Skill ensures new source files are registered in the project's Makefile and reminds you to regenerate compile_commands.json for proper IDE integration.

What coding conventions are enforced when creating FLEKS C++ files?

Creating FLEKS C++ files enforces specific coding conventions including correct include guards, standard header ordering, and proper member variable naming to ensure adherence to established project standards.

Can I regenerate compile_commands.json after creating new source files?

You can regenerate compile_commands.json after creating new source files. This Skill facilitates the regeneration of compile_commands.json to update your IDE integration and ensure the new files are recognized by the build system.