# Add Source File

> Add Source File is an Agent Skill for development published in the google/boringssl repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

How to add a new source file to the BoringSSL build.

- Skill name: `add-source-file`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/google/boringssl/blob/HEAD/agents/skills/add_source_file/SKILL.md
- Repository: google/boringssl (2,226 GitHub stars when collected)

## SKILL.md

# Adding a Source File to the Build

To add a new source file (C/C++, header, or assembly) to BoringSSL, you must update the build configuration and regenerate the build files.

## Steps

1.  **Update `build.json`**:
    *   Add the new file to the correct section (e.g., `srcs`, `hdrs`, `internal_hdrs`) under the appropriate target in [build.json](../../../build.json).
    *   For the schema of `build.json`, refer to the Go structs in [util/pregenerate/build.go](../../../util/pregenerate/build.go).

2.  **Update Pregenerated Files**:
    *   After modifying `build.json`, you must regenerate the build files.
    *   Refer to [gen/README.md](../../../gen/README.md) or use the [update_pregenerated_files](../update_pregenerated_files/SKILL.md) skill to update the pre-generated files.

---

Source: https://www.openparable.com/skill/development/add-source-file (OpenParable). Cite the canonical URL above.
