glanzlicht / YouGit-AI

AI-assisted secure code showcases for WordPress — scan, redact and publish GitHub repositories without exposing sensitive IP.

Verified secure showcase
62 Files 855 KB Public size 0 Redacted PHP · Markdown · CSS · JavaScript · PO · YAML

Project overview

YouGit-AI is a verified code showcase with 62 visible project entries across 3 top-level modules. The primary detected language is PHP; protected files remain visible in the structure while their contents stay private.

README

YouGitAI Secure Showcase

AI-assisted secure code showcases for WordPress — scan, redact and publish GitHub repositories without exposing sensitive IP.

YouGitAI Secure Showcase is a WordPress plugin that turns public or private GitHub repositories into employer-friendly portfolio showcases. It combines deterministic secret detection, AI-assisted IP review, manual protection rules, versioned public snapshots and a constrained ChatGPT/MCP review workflow.

The goal is simple: show what you built without turning your portfolio into a blueprint for cloning it.

Highlights

  • GitHub OAuth support for public and private repositories
  • deterministic secret scanning
  • AI-assisted portfolio/IP review
  • manual path, string, regex and symbol-oriented protection rules
  • protected files and folders remain visible as architectural context without exposing their contents
  • visible inline redaction markers in public code views
  • versioned draft/public snapshots
  • human-controlled publication workflow
  • ChatGPT/MCP integration with OAuth
  • OpenAI, Anthropic Claude and Google Gemini support
  • standalone WordPress frontend
  • native Elementor integration
  • German and English localization

Portfolio-aware protection

YouGitAI is designed to distinguish between useful technical evidence and material that should not be public.

Typical review classes include:

ClassTypical handling
Safe portfolio signalShow
Internal schemaAbstract / redact
Private endpointRedact
AI promptRedact / protect
Security implementationAbstract / protect
Proprietary business logicAbstract / protect
Core/reconstructable IPProtect
Secret / credentialRemove

Safe publication model

  1. Import repository content for private review
  2. Detect potential risks
  3. Review scanner/AI suggestions
  4. Approve protection rules
  5. Apply protection to a draft showcase
  6. Verify the resulting snapshot
  7. Publish only after explicit human approval

Sync is not publish. AI review is not publish.

AI/MCP clients do not receive direct publish or restore capabilities.

Protected structure

Files or folders that must not be public can remain visible in the repository tree as protected entries. Visitors can understand that a component exists and where it belongs while the protected source itself is never served publicly.

ChatGPT / MCP

YouGitAI exposes a constrained MCP interface for authorized repository review. It supports repository discovery, paginated tree inspection, selective source review, security findings and protection proposals. Publication remains under WordPress administrator control.

WordPress / Elementor

The plugin works standalone and also provides Elementor widgets.

Typical public routes:

/repositories/
/repositories/{repository-slug}/

Security

The plugin is designed around a strict separation between original repository material and public showcase snapshots. Repository contents are treated as untrusted input, publication requires explicit human approval, and protected content is not returned through the public showcase API.

See [SECURITY.md](yougitai-secure-showcase/SECURITY.md).

Installation

  1. Download or build the plugin directory yougitai-secure-showcase.
  2. Upload it to /wp-content/plugins/ or install the release ZIP in WordPress.
  3. Activate YouGitAI Secure Showcase.
  4. Configure GitHub access and optional AI providers in the WordPress admin.
  5. Import a repository, review protection suggestions and publish an approved showcase snapshot.

Development status

YouGitAI is under active development. This repository contains the actual plugin source. Credentials, API keys and site-specific configuration are intentionally not included and are configured at runtime in WordPress.

Tech

WordPress · PHP · JavaScript · GitHub OAuth · REST · MCP · OAuth 2.0 / PKCE · Elementor · OpenAI · Claude · Gemini

Author

Built by Sascha Haselhuhn / glanzlicht.

Public showcase: https://sascha-haselhuhn.com/repositories/

yougitai-secure-showcase/src/Database/Schema.phpPHP
<?php
namespace YougitAI\SecureShowcase\Database;
final class Schema {
public static function table( string $name ): string {
global $wpdb;
return $wpdb->prefix . 'yougitai_ss_' . $name;
}
public static function install(): void {
global $wpdb;
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
$charset = $wpdb->get_charset_collate();
$repositories = self::table( 'repositories' );
$snapshots = self::table( 'snapshots' );
$files = self::table( 'files' );
$rules = self::table( 'rules' );
$findings = self::table( 'findings' );
$audit = self::table( 'audit_log' );
$connections = self::table( 'connections' );
$oauth_clients = self::table( 'oauth_clients' );
$oauth_codes = self::table( 'oauth_codes' );
$oauth_tokens = self::table( 'oauth_tokens' );
dbDelta( "CREATE TABLE {$repositories} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
owner VARCHAR(191) NOT NULL,
repo VARCHAR(191) NOT NULL,
slug VARCHAR(191) NOT NULL,
title VARCHAR(191) NOT NULL,
description TEXT NULL,
default_branch VARCHAR(191) NOT NULL DEFAULT 'main',
github_url TEXT NOT NULL,
visibility VARCHAR(32) NOT NULL DEFAULT 'public',
access_mode VARCHAR(32) NOT NULL DEFAULT 'public',
access_password_hash LONGTEXT NULL,
status VARCHAR(32) NOT NULL DEFAULT 'draft',
protection_profile VARCHAR(32) NOT NULL DEFAULT 'balanced',
show_original TINYINT(1) NOT NULL DEFAULT 0,
is_private TINYINT(1) NOT NULL DEFAULT 0,
sync_mode VARCHAR(32) NOT NULL DEFAULT 'manual',
webhook_secret LONGTEXT NULL,
last_webhook_at DATETIME NULL,
active_snapshot_id BIGINT UNSIGNED NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY slug (slug),
KEY owner_repo (owner, repo)
) {$charset};" );
dbDelta( "CREATE TABLE {$snapshots} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
repository_id BIGINT UNSIGNED NOT NULL,
source_ref VARCHAR(191) NULL,
source_sha VARCHAR(64) NULL,
status VARCHAR(32) NOT NULL DEFAULT 'draft',
review_status VARCHAR(32) NOT NULL DEFAULT 'pending',
show_original TINYINT(1) NOT NULL DEFAULT 0,
file_count BIGINT UNSIGNED NOT NULL DEFAULT 0,
finding_count BIGINT UNSIGNED NOT NULL DEFAULT 0,
critical_count BIGINT UNSIGNED NOT NULL DEFAULT 0,
verification_hash CHAR(64) NULL,
created_at DATETIME NOT NULL,
reviewed_at DATETIME NULL,
published_at DATETIME NULL,
PRIMARY KEY (id),
KEY repository_id (repository_id),
KEY status (status),
KEY review_status (review_status)
) {$charset};" );
dbDelta( "CREATE TABLE {$files} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
repository_id BIGINT UNSIGNED NOT NULL,
snapshot_id BIGINT UNSIGNED NOT NULL,
path TEXT NOT NULL,
path_hash CHAR(64) NOT NULL,
filename VARCHAR(255) NOT NULL,
extension VARCHAR(32) NULL,
language VARCHAR(64) NULL,
size BIGINT UNSIGNED NOT NULL DEFAULT 0,
source_sha VARCHAR(64) NULL,
visibility VARCHAR(32) NOT NULL DEFAULT 'public',
risk_score SMALLINT UNSIGNED NOT NULL DEFAULT 0,
content LONGTEXT NULL,
redaction_manifest LONGTEXT NULL,
content_hash CHAR(64) NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NULL,
PRIMARY KEY (id),
UNIQUE KEY snapshot_path (snapshot_id, path_hash),
KEY repository_snapshot (repository_id, snapshot_id),
KEY visibility (visibility),
KEY risk_score (risk_score)
) {$charset};" );
dbDelta( "CREATE TABLE {$rules} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
repository_id BIGINT UNSIGNED NOT NULL,
file_path TEXT NULL,
rule_type VARCHAR(32) NOT NULL,
target TEXT NOT NULL,
action VARCHAR(32) NOT NULL,
replacement TEXT NULL,
notes TEXT NULL,
source VARCHAR(32) NOT NULL DEFAULT 'manual',
confidence DECIMAL(5,2) NULL,
enabled TINYINT(1) NOT NULL DEFAULT 1,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL,
PRIMARY KEY (id),
KEY repository_id (repository_id),
KEY rule_type (rule_type),
KEY enabled (enabled)
) {$charset};" );
dbDelta( "CREATE TABLE {$findings} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
repository_id BIGINT UNSIGNED NOT NULL,
snapshot_id BIGINT UNSIGNED NOT NULL,
file_id BIGINT UNSIGNED NULL,
file_path TEXT NOT NULL,
finding_type VARCHAR(64) NOT NULL,
severity VARCHAR(16) NOT NULL DEFAULT 'medium',
risk_score SMALLINT UNSIGNED NOT NULL DEFAULT 0,
source VARCHAR(32) NOT NULL DEFAULT 'scanner',
title VARCHAR(255) NOT NULL,
details TEXT NULL,
recommendation VARCHAR(32) NOT NULL DEFAULT 'review',
status VARCHAR(32) NOT NULL DEFAULT 'open',
metadata LONGTEXT NULL,
created_at DATETIME NOT NULL,
resolved_at DATETIME NULL,
PRIMARY KEY (id),
KEY repository_snapshot (repository_id, snapshot_id),
KEY file_id (file_id),
KEY severity (severity),
KEY status (status)
) {$charset};" );
dbDelta( "CREATE TABLE {$connections} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
user_id BIGINT UNSIGNED NOT NULL,
label VARCHAR(191) NOT NULL,
token_hash CHAR(64) NOT NULL,
scopes TEXT NOT NULL,
repository_ids TEXT NULL,
created_at DATETIME NOT NULL,
expires_at DATETIME NOT NULL,
last_used_at DATETIME NULL,
request_count BIGINT UNSIGNED NOT NULL DEFAULT 0,
source_bytes BIGINT UNSIGNED NOT NULL DEFAULT 0,
revoked_at DATETIME NULL,
PRIMARY KEY (id),
UNIQUE KEY token_hash (token_hash),
KEY user_id (user_id),
KEY expires_at (expires_at),
KEY revoked_at (revoked_at)
) {$charset};" );
dbDelta( "CREATE TABLE {$oauth_clients} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
client_id VARCHAR(191) NOT NULL,
client_name VARCHAR(191) NOT NULL,
redirect_uris LONGTEXT NOT NULL,
created_at DATETIME NOT NULL,
revoked_at DATETIME NULL,
PRIMARY KEY (id),
UNIQUE KEY client_id (client_id),
KEY revoked_at (revoked_at)
) {$charset};" );
dbDelta( "CREATE TABLE {$oauth_codes} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
code_hash CHAR(64) NOT NULL,
client_id VARCHAR(191) NOT NULL,
user_id BIGINT UNSIGNED NOT NULL,
redirect_uri TEXT NOT NULL,
scopes LONGTEXT NOT NULL,
repository_ids LONGTEXT NOT NULL,
code_challenge VARCHAR(191) NOT NULL,
created_at DATETIME NOT NULL,
expires_at DATETIME NOT NULL,
used_at DATETIME NULL,
PRIMARY KEY (id),
UNIQUE KEY code_hash (code_hash),
KEY client_id (client_id),
KEY expires_at (expires_at)
) {$charset};" );
dbDelta( "CREATE TABLE {$oauth_tokens} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
client_id VARCHAR(191) NOT NULL,
user_id BIGINT UNSIGNED NOT NULL,
label VARCHAR(191) NOT NULL,
access_token_hash CHAR(64) NOT NULL,
refresh_token_hash CHAR(64) NOT NULL,
scopes LONGTEXT NOT NULL,
repository_ids LONGTEXT NOT NULL,
created_at DATETIME NOT NULL,
expires_at DATETIME NOT NULL,
refresh_expires_at DATETIME NOT NULL,
last_used_at DATETIME NULL,
request_count BIGINT UNSIGNED NOT NULL DEFAULT 0,
source_bytes BIGINT UNSIGNED NOT NULL DEFAULT 0,
revoked_at DATETIME NULL,
PRIMARY KEY (id),
UNIQUE KEY access_token_hash (access_token_hash),
UNIQUE KEY refresh_token_hash (refresh_token_hash),
KEY client_id (client_id),
KEY user_id (user_id),
KEY expires_at (expires_at),
KEY revoked_at (revoked_at)
) {$charset};" );
dbDelta( "CREATE TABLE {$audit} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
repository_id BIGINT UNSIGNED NULL,
snapshot_id BIGINT UNSIGNED NULL,
user_id BIGINT UNSIGNED NULL,
event_type VARCHAR(64) NOT NULL,
message TEXT NOT NULL,
metadata LONGTEXT NULL,
created_at DATETIME NOT NULL,
PRIMARY KEY (id),
KEY repository_id (repository_id),
KEY snapshot_id (snapshot_id),
KEY event_type (event_type),
KEY created_at (created_at)
) {$charset};" );
}
}

Architecture

High-level modules detected from the verified public snapshot. Protected implementation details are intentionally omitted.

yougitai-secure-showcasemodule
.githubmodule
.vscodemodule

Technology stack

PHPPOPOTCSSMarkdownJavaScript
PHP52.5%
PO26.8%
POT8.2%
CSS6.3%
Markdown4.0%
JavaScript1.4%
TXT0.5%
YAML0.1%