Przejdź do treści
Biblioteka skilli
DevOps i chmura · Nauka i wyjaśnianie

devops

/devops

Pomaga w codziennym DevOps małych zespołów: git, komunikatach commitów, prostych wdrożeniach, plikach .env i podstawach CI/CD.

Repozytorium
skilljmskill ↗
Licencja
MIT
Ostatnia zmiana repozytorium
09.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga w codziennym DevOps małych zespołów: git, komunikatach commitów, prostych wdrożeniach, plikach .env i podstawach CI/CD.

Oryginalny opis (EN)

Day-to-day DevOps for solo developers and small teams — git workflow (status, branches, commits, rebase), conventional commit messages, deployment basics, environment variables, and CI/CD fundamentals. Use when the user asks about git commands, resolving merge conflicts, setting up a deployment, managing .env files, or understanding a CI pipeline. Not a Kubernetes or cloud-architecture reference.

Jak działa

  1. When to Use
  2. Git Workflow
  3. Environment Variables
  4. Deployment Basics
  5. CI/CD Concept
  6. Best Practices
  7. Common Mistakes
Sekcje z nagłówków SKILL.md, w oryginale · 188 linii, 585 słów
Podgląd SKILL.md
---
name: devops
description: Day-to-day DevOps for solo developers and small teams — git workflow (status, branches, commits, rebase), conventional commit messages, deployment basics, environment variables, and CI/CD fundamentals. Use when the user asks about git commands, resolving merge conflicts, setting up a deployment, managing .env files, or understanding a CI pipeline. Not a Kubernetes or cloud-architecture reference.
---

# Skill: DevOps

> **Purpose**: Manage code, deploy, and automate with confidence.

## When to Use
- Git workflow questions
- Deployment setup
- Environment configuration
- CI/CD understanding

---

## Git Workflow

### Daily Commands
```bash
# Check status
git status

# Stage and commit
git add .
git commit -m "fix: resolve null pointer in UserService"

# Push to remote
git push origin main
```

### Commit Message Format
```
type: short description

Types:
  feat:     New feature
  fix:      Bug fix
  refactor: Code change that neither fixes nor adds
  docs:     Documentation only
  test:     Adding/updating tests
  chore:    Build, config, tooling changes
```

### Branching Strategy
```bash
# Create feature branch
git checkout -b feature/add-user-search

# Work on it, commit...
git add .
git commit -m "feat: add user search by email"

# Push branch
git push origin feature/add-user-search

# After review, merge to main
git checkout main
git pull origin main
git merge feature/add-user-search
git push origin main

# Clean up
git branch -d feature/add-user-search
```

### Undo Mistakes
```bash
# Undo last commit (keep changes)
git reset --soft HEAD~1

# Discard all local changes
git checkout -- .

# Fix last commit message
git commit --amend -m "correct message"

# Unstage a file
git reset HEAD file.txt
```

---

## Environment Variables

### Why
Never hardcode secrets, URLs, or config that changes between environments.

### How (Node.js)
```bash
# .env file (NEVER commit this)
DB_HOST=localhost
DB_PORT=5432
API_KEY=sk-abc123
```

```javascript
// Load with dotenv
require('dotenv').config();
const dbHost = process.env.DB_HOST;
const apiKey = process.env.API_KEY;
```

### How (Java)
```java
// Read from system environment
String dbHost = System.getenv("DB_HOST");
if (dbHost == null) {
    System.err.println("DB_HOST not set, using default");
    dbHost = "localhost";
}
```

### .gitignore
```
# Always ignore
.env
node_modules/
*.class
target/
.idea/
.DS_Store
```

---

## Deployment Basics

### Simple Deployment Checklist
1. ✅ All tests pass locally
2. ✅ Environment variables are set on the server
3. ✅ `.gitignore` excludes secrets and build artifacts
4. ✅ Build the project: `npm run build` or `javac *.java`
5. ✅ Run on server: `node dist/index.js` or `java Main`

### Environments
| Environment | Purpose | Data |
|-------------|---------|------|
| `development` | Local coding | Fake/test data |
| `staging` | Pre-release testing | Copy of production data |
| `production` | Real users | Real data |

---

## CI/CD Concept

**CI (Continuous Integration)**: Automatically run tests when you push code.
**CD (Continuous Deployment)**: Automatically deploy when tests pass.

### Simple GitHub Actions Example
```yaml
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm install
      - run: npm test
```

### Mental Model
```
Push code → CI runs tests → Tests pass? → Deploy
                           → Tests fail? → Fix and push again
```

---

## Best Practices
1. **Commit often** — small, focused commits are easier to review and revert
2. **Never commit secrets** — use `.env` + `.gitignore`
3. **Pull before push** — avoid merge conflicts
4. **Branch per feature** — keep main clean
5. **Automate repetitive tasks** — if you do it 3+ times, script it

## Common Mistakes
| Mistake | Fix |
|---------|-----|
| Committing `.env` or secrets | Add to `.gitignore` immediately |
| Huge commits with mixed changes | One commit per logical change |
| Working directly on `main` | Use feature branches |
| No `.gitignore` | Create it before first commit |
| Manual deployments | Set up basic CI/CD |

Wersje

RepozytoriumWynikLicencja
Ta strona · DaraBoth/skilljmskill100MIT
MaxMiksa/Auto-Company100MIT
chuckplayer/claude-agent-pack100MIT
iankiku/forwward-teams100MIT
evolv3-ai/vibe-skills100MIT
xiaobei930/cc-best100MIT
carlheath/ogmios100MIT
rade-nugroho/agentic-enteprises-skill100MIT
joncik91/ucai95MIT

Migawka bazy z 13.11.2026 · wersja paczki c7a8dcd418b1 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100git-workflow-manager
    Prawdopodobnie zarządza przepływem pracy w Git w ramach podstaw DevOps.
  • 86team-shinchan:devops
    Pomaga w pracach DevOps: CI/CD, Docker, wdrożeniach i potokach, gdy trzeba je przeprowadzić.
  • 100environment-variables-handler
    Prawdopodobnie pomaga zarządzać zmiennymi środowiskowymi i ich obsługą w ramach podstaw DevOps.
  • 96managing-devops-pipeline
    Zarządza buildami w platformie CI/CD BlueShield (蓝盾): sprawdza historię i status oraz uruchamia nowe buildy.
  • 90msf-devops
    Pomaga w Git, GitHub Actions, Dockerze, Kubernetes, Terraformie, IIS, wdrożeniach, niezawodności i reakcji na incydenty.
  • 100conventional-commits
    Wymusza format Conventional Commits w komunikatach gita i sprawdza strukturę komunikatów przy walidacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.