Skip to content
Back to skills

Google Oss

ASecurity

Audit repositories for Open Source compliance, Apache-2.0 license headers, and clean boundaries. Trigger via /google-oss.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentspythongojavabashexpress

Security analysis

A100/100

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

Scanned September 3, 2026

npx -y skills add ksprashu/agent-skill-forge --skill google-oss --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Oss?

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

Security grade badge for Google Oss
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/ksprashu-google-oss/badge)](https://www.skillsdirectory.com/skills/ksprashu-google-oss)

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: google-oss
description: Audit repositories for Open Source compliance, Apache-2.0 license headers, and clean boundaries. Trigger via /google-oss.
disable-model-invocation: true
---

# Google OSS: Open Source Compliance & License Auditor

Bring codebases into compliance with Google Open Source standards and license requirements.

---

## 🎯 Goal
Ensure repository contains required licensing (`LICENSE`, `CONTRIBUTING.md`), license headers on source files, and zero internal corp URLs or secrets.

---

## πŸ“‹ Step-by-Step Workflow

1. **Scrub Internal Artifacts**: Scan for internal hostnames (`.google.com`, `.corp.google.com`) and private employee usernames.
2. **Ensure Core Files Exist**: Verify `LICENSE` (Apache-2.0), `CONTRIBUTING.md`, and `CODE_OF_CONDUCT.md` are present.
3. **Apply License Headers**: Check that all source files (`.py`, `.ts`, `.go`, `.java`) contain the standard copyright header:
   ```bash
   addlicense -c "Google LLC" -l apache ./src
   ```
4. **Update README**: Add the standard "Not an officially supported Google product" disclaimer if applicable.

---

## πŸ’‘ Concrete Example

### Apache 2.0 Header Fixture (`src/main.py`)
```python
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
```

---

## 🚫 Hard Constraints

*   **NEVER** publish repositories containing internal corp hostnames or private employee email addresses.
*   **NEVER** skip license headers on new source code files.

Files in this skill

  • README.md428 B
  • SKILL.md1.9 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.

Comments

Loading comments…