OpenSpec Changes Everything - No More Vibe Coding (Full Tutorial)

Code With Nathan www.youtube.com

간략한 요약

이 비디오에서는 OpenSpec이라는 새로운 라이브러리를 소개하고, 이를 통해 스펙 주도 개발을 수행하는 방법을 설명합니다. OpenSpec은 인간과 AI 코딩 도우미가 코드를 작성하기 전에 빌드할 내용을 계획하고 합의하도록 돕는 도구입니다. 주요 내용은 다음과 같습니다.

  • OpenSpec은 스펙 주도 개발을 위한 경량화된 도구입니다.
  • OpenSpec은 프로젝트의 현재 상태와 제안된 업데이트를 관리하기 위해 두 개의 폴더 모델을 사용합니다.
  • OpenSpec은 다양한 AI 도구와 호환됩니다.
  • OpenSpec을 설치하고 프로젝트에 통합하는 방법을 보여줍니다.
  • OpenSpec을 사용하여 새로운 기능을 제안하고 구현하는 방법을 설명합니다.

소개

OpenSpec은 스펙 주도 개발을 통해 애플리케이션을 개발하고 유지 관리하는 데 도움이 되는 새로운 툴킷입니다. OpenSpec은 인간과 AI 코딩 도우미가 코드를 작성하기 전에 빌드할 내용을 계획하고 합의하도록 돕습니다. API 키가 필요 없으며 구현 전에 의도를 고정합니다. OpenSpec은 제안, 작업 및 스펙 업데이트와 일관성을 유지하여 범위 변경을 검토하고 투명하게 만듭니다. OpenSpec은 Specit보다 명령이 적고 설정이 최소화된 경량 버전입니다. OpenSpec은 현재 상태를 위한 specs 폴더와 제안된 업데이트를 위한 changes 폴더의 두 폴더 모델을 사용합니다. 이 모델은 기존 기능을 수정하거나 여러 스펙을 변경할 때 더 효과적입니다. Specit은 처음부터 시작하는 새로운 프로젝트에 가장 적합합니다. OpenSpec은 스펙 주도 개발을 사용하여 애플리케이션을 구축하고 유지 관리할 때 더 많은 제어, 명확성 및 안정성을 제공합니다. 또한 Cloud Code, Cursor, Open Code, Kilo Code 등과 같은 많은 인기 있는 AI 도구에서 지원됩니다.

OpenSpec 설치 및 초기화

OpenSpec을 설치하려면 먼저 Node.js가 컴퓨터에 설치되어 있어야 합니다. Node.js가 없으면 nodejs.org에서 무료로 설치할 수 있습니다. Node.js를 설치한 후 터미널을 열고 npm install -g openspec 명령을 실행하여 OpenSpec을 설치합니다. 설치가 완료되면 openspec --version 명령을 실행하여 설치를 확인할 수 있습니다. OpenSpec을 프로젝트 디렉터리에서 초기화하려면 VS Code에서 터미널을 열고 openspec init 명령을 실행합니다. OpenSpec을 구성하라는 메시지가 표시되면 Enter 키를 누르고 사용하려는 AI 도구를 선택합니다. OpenSpec 워크플로 및 템플릿이 프로젝트 디렉터리에 추가됩니다. 프로젝트 탐색기에서 .kilode/workflows 폴더와 openspec 폴더를 확인할 수 있습니다. openspec 폴더에는 agents.mmd 파일, changes 디렉터리 및 specs 디렉터리가 있습니다.

OpenSpec 워크플로 및 기능 구현

OpenSpec은 터미널에 다음 단계를 제시합니다. 먼저 프로젝트 마크다운 파일에 프로젝트 요약, 텍스트 태그 및 규칙과 같은 프로젝트 세부 정보를 입력합니다. AI 도우미를 사용하여 이 작업을 수행할 수 있습니다. AI 도우미에 프롬프트를 입력하여 프로젝트에 대한 요약을 생성하고 사용된 텍스트 스택, 실행 방법 등과 같은 기술 세부 정보를 추가합니다. 다음으로 추가하려는 새로운 기능에 대한 프롬프트를 AI에 요청하고 OpenSpec 변경 제안을 생성하라는 지시를 추가합니다. AI 에이전트는 변경에 대한 이유, 프로젝트에서 변경될 내용, 단계별로 실행할 수 있는 작업 목록 및 변경 사항이 충족해야 하는 시나리오를 설명하는 스펙 문서를 생성합니다. OpenSpec 워크플로를 설명하도록 AI에 요청할 수도 있습니다. 변경 사항에 대한 제안을 생성하고 에이전트에게 스펙을 진행하거나 구현하도록 지시하여 구현할 수 있습니다. 변경이 완료되면 변경 사항을 보관하여 OpenSpec이 과거 변경 사항과 현재 변경 사항을 구별할 수 있습니다. 새로운 기능을 구현하려면 AI에 구현하도록 요청합니다. 에이전트는 앱을 변경하고 스타일링 작업을 수행합니다. 모든 작업이 완료되면 작업이 완료되었다는 메시지가 표시되고 앱을 탐색할 수 있습니다.

OpenSpec을 사용한 칸반 보드 앱 데모

이 비디오에서는 OpenSpec을 사용하여 칸반 보드 앱을 빌드하는 방법을 보여줍니다. 앱은 열과 카드를 생성, 편집, 삭제 및 이동할 수 있습니다. 앱의 스타일링은 완벽하지 않지만 기능은 제대로 작동합니다. 제안된 변경 사항이 구현되었으므로 스펙을 보관할 수 있습니다. openspec archive <spec name> --yes 명령을 실행하여 스펙을 보관하고 활성 변경 사항에서 제거합니다. 칸반 보드의 CSS 스타일링을 조정하고 반응형으로 만드는 새로운 제안을 보낼 수 있습니다.

OpenSpec 요약 및 결론

OpenSpec은 프롬프트를 구조화된 검토 가능한 제안 및 구현 계획으로 전환하여 AI 에이전트를 안내할 수 있는 훌륭한 도구입니다. openspec view 명령을 실행하여 모든 활성 제안을 볼 수 있습니다. 이 명령은 사양 요약, 활성 변경 사항, 완료된 변경 사항 및 작업 진행률을 보여줍니다. OpenSpec은 Specit보다 가볍습니다. OpenSpec은 하나의 명령 또는 프롬프트로 새로운 기능에 대한 제안, 작업 및 스펙을 생성할 수 있습니다. OpenSpec은 Specit보다 자세한 내용을 채우려고 하지 않고 검토하고 수정할 수 있는 충분한 컨텍스트를 생성합니다. OpenSpec은 무료 오픈 소스이며 GitHub 리포지토리에서 사용할 수 있습니다.

유튜브 영상을 몇 초 만에 요약하세요

무료 Summ 앱으로 어떤 영상이든 이런 요약을 원하는 언어로 받아보세요.

App Store에서 다운로드
Google Play에서 다운로드

스크립트

“OpenSpec Changes Everything - No More Vibe Coding (Full Tutorial)”의 전체 스크립트입니다. 타임스탬프를 클릭하면 해당 장면부터 영상이 열려요. 다른 영상이 필요하다면 유튜브 스크립트 추출기를 이용하세요.

0:00 Hey everyone, how's it going? Welcome back with Minaden. In this video, I want to tell you about OpenSpec, a new library that can help you do specdriven development. So, OpenSpec is a new toolkit that helps you to use specdriven development for developing and maintaining your application. It helps humans and AI coding assistants to plan and agree on what to build before any code is written. It requires no API keys and it ensures your intent is locked before implementation. Basically, the process will give you a more deterministic and structured results instead of random AI fight coding output. It keeps everything aligned with proposals, tasks, as well as spec updates, making scope changes reviewable and transparent. Now, you might be asking, what's the difference between

0:46 this and specit? Well, open spec is basically a more lightweight version of speckit as it has less commands and more minimal setup. What's more, OpenSpack uses a two-folder model. There is the specs folder for the current state and then there is the changes folder for proposed updates. This model scales better when you modify existing features or touch multiple specs. On the other hand, specit works best for green field or brand new projects where you start from scratch. Once your code base evolves, managing updates and changes across specs become quite messy as there is less structure. It's not ideal for ongoing development. In short, OpenSpack promises to bring more control, clarity, and reliability as you use specdriven

1:31 development to build and maintain your application. Also, it's supported by many popular AI tools like cloud code, cursor, open code, kilo code, and many many others. So, next I will show you how to set up open spack in your app project. Now, before we jump into the exciting part, don't forget to subscribe to my YouTube channel so you won't miss new videos that can really help you level up your skills. Also, don't forget to click on the bell to get notified whenever a new video comes out. Thanks a lot for supporting the channel. You really help me make useful videos just like this one. First, you need to install the tool using npm, which means you have to have Node.js installed on your computer. If you don't have NodeJS already, then you can install it for free at no.js.org. Just click on the install button here to get it up and

2:17 running. Once you have NodeJS installed, copy the command here, open your terminal, paste the command, and press enter. It will take a few minutes to install, but once done, you can verify the installation by running the openspec- version command to see if it's installed. Okay, I have it available here. Now, we can initialize openspec in our project directory, and I'm going to do so inside VS Code. So on the screen here, I've gone ahead and created a sample application that I'm going to build with the help of openspec. Currently, this is a react app just generated using Vit. Uh we can try to run it using npm rundev. And here we can see there is nothing yet. So back in VS code, what we're going to do now is to initialize openspec in this project

3:03 directory. I'm going to expand the terminal window here so that you can view it better and then run the command opensp spec in it which will initialize openspec on this project. Now it says you need to configure openspec first. So just press enter and now you can select between different options available here. Openspec currently supports many popular extensions and idees like cloud code client cursor windsurf and so on. Right now I'm going to use Kila code as that's part of my daily tools but you can choose any other options. Select your tool and then press enter. Here you can undo the selection if somehow you choose the wrong tool but if not just press enter and that's it. Now open spec workflows and templates are added to the project directory. This is quite similar

3:48 to how specit works. So if you go to the project explorer here you can see the do.killode/workflows killer code/workflows folder and it has opensp spec custom/comands and if you open the opensp spec folder here there is the agents.mmd file for instructions as well as changes and specs directories where the technical documentations will be stored. All right, the next steps are presented by open spec on the terminal here. So the first thing to do is to populate the project markdown file with your project detail such as the summary, the text tag and conventions used. You can ask the AI to help with this. So just open your AI assistant. For me, it's killer code here and then just paste the prompt in the chat box. Press enter to send the prompt

4:34 and let Kilo code work on the request for a moment. It will scan the project to figure out a summary of what the project is about and then add technical details such as the text stack used, how to run it and so on. Okay, so Kilode has completed the first step. Here we can see the project description on the screen and then the next step is to prompt the AI for a new feature you want to add followed by this instruction to create an open spec change proposal for the feature. Now I already have my prompt and it's a bit long. So I'm just going to paste it here. Basically, this prompt describes the app I want to build, which is a Trello style canban board app for managing tasks. Here, I describe the spec such as what the columns can do and then the cards as well as persisting the data in local

5:20 storage to keep this app simple. I ask it to implement the UI and the JS logic exactly according to the spec above. Keep the code clean and easy to read. Below this prompt, just add create an open spec change proposal for this feature as hinted by openspec. Press enter and let the agent work on the request. Once ready, the agent will start by generating the proposal for this new feature. The proposal will list the reasons for this change as well as what will be changed on the project. After that, it will generate the tasks that can be executed step by step by AI agents before writing the spec document which outlines the scenarios that needs to be fulfilled by the change. This is actually quite convenient as it means you get the complete technical requirements with just a single command

6:06 or prompt. While in specit you have to generate them one by one and once it's all done you can go through the proposal, the tasks and the spec document to see if they are exactly how you want them to be. After that you can start implementing the tasks. But if this is your first time running openspec then you can also run the third step here which is to ask the AI to explain the opensp spec workflow. Basically you can create proposal for changes by running the previous command and then implement them by telling the agent to proceed or implement the spec. You don't have to run a custom command as open spack will provide the agent with the right context. And once the changes are done, you can archive the changes. So open spack can differentiate between past changes and what's current. For

6:53 more details, you can read the output of the third command here. But for now, let's proceed to implement the new feature. Just from the AI to let's implement this, and the agent will start working on the request. It will make changes to the app. as we can see here. And then it will also work on the app styling. And in kill it, it will also opens a browser in the background to test the app. And once all is finished, it will say task completed. And we can start exploring the app ourselves. Now, this will take a while. So I will skip a bit when it's finished. Okay, here it's all has been finished. So it's time to explore the result. I will open the browser here. And it seems the styling is a bit off. I think the board title

7:40 and the add column button can stretch to the right here. But let's just test the app for now. Let's create a new column. And for the name, maybe task. Okay, the column is now created. Let's create another one here for finish tasks. And then another one for backlogs. Now let's try to drag the columns around. Okay, they can switch places just fine. Now let's add a new card. I will call this explore open spec. For the description, let's leave it empty for now. And for the color, I will put blue here. Okay, the card is created. We can see the blue accent on the left side. Let's edit this for now. And then add a description. All right, we can add a description to the card. So nice. Let's move the card

8:28 around. Okay, it works. There is also a little animation there changing the angle of the boards when the card is moving around. Uh so that's a pretty nice touch. Now let's create a new card and the title will be marks back as archived. Give it red color. Okay, here's the second card and we can move it around as well. Finally, let's delete the first card here. All right, now delete a column. It works. So there seems to be no issue with the functionalities. Uh we can definitely improve this app further and adjust the styling to be more responsive. But for now let's go back to VS Code. And here I want to archive spec as the proposed changes have been implemented. So we're going to run the

9:13 open spec command here which is opensp spec archive the spec name and then add the yes option. This will mark the spec as archived and remove it from active changes. So go back to the chat box and press enter. We can see here that the agent wants to run the open spec command. So just allow it. And now the changes are archived. Now you can send a new proposal for changes. So I will do just that here. Let's prompt the agent to adjust the CSS styling of the canban board and make it responsive. After that just add the same instruction to create an open spec change proposal. Press enter and the agent will work on the new proposal request. It will

9:58 generate the proposal and then the tasses and the spec documents. If you like this video and would love to support the channel, you can consider donating to my channel through the super thanks option below. Or you can consider joining my YouTube membership where you can use this channel's emojis, get early access to new videos, plus a lot more. So that's how OpenSpack works in a nutshell. Overall, this is a pretty awesome tool that can turn prompts into a structured reviewable proposal and implementation plan that can guide your AI agent. You can also view all active proposals by running the open spec view command. Here you can see the summary of specifications, active changes, completed changes, and task progress.

10:46 This overview makes it easier to remember what have been done in the project. And one thing I definitely noticed is that open spec is indeed more lightweight when compared to specit because with just one command or prompt it can generate the proposal, the tasks and the spec of the new feature. While in specit is a command for each step and the markdown doc commands are also more precise and output less words when compared to specit's output which means less tokens are used in the long run. If you look at kilo code here, notice that it cost us just about $1 to generate one feature spec and implement it. While in spec kit, it will probably cost us more. Unlike specit, which aims to be as detailed and precise as possible, open spec doesn't try to fill in too much detail, but rather it generate mostly

11:32 enough context that you can review and revise as you see fit. So, if you're interested in trying it out, just head over to its GitHub repo as it's free and open source. I will leave a link to this in the description below. And [snorts] now we have come to the end of this video. So, what do you think about OpenSpec? I encourage you to try it out for yourself and let me know about your experiences. I hope you all enjoy today's video and get some value out of it. Let me know your thoughts and questions in the comments below. I'll join the conversation and reply as often as I can. Also, if you're new to the channel, my name is Nathan and I hope you'll learn how to code and use AI tools. Make sure you subscribe if that's something you find useful. Don't forget to like this video, turn on the notification bell, all the good stuff, as it really helps the channel to grow. With that being said, thanks so much for

12:17 watching until the end. I hope you have a great day, and I'll see you in other videos. Bye-bye. [music]

Share

다른 영상 요약